PageSourceSearch

https://info.feversocial.com/_next/static/chunks/5.dfeb511e535aa57a.js

js feversocial.com collected 2026-09-29 21:47:56 UTC 289,369 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5],{23597:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(16835),o=n(92777),i=n(82262),a=n(10748),c=n(45959),s=n(63553),l=n(37247),d=n(59499),u=n(67294),p=n(26113),f=n(17563),h=n(68250),m=n(14416),v=n(2558);function g(e,t){var n=e.sections,r=e.page,o=r.domain,i=r.sponsor,a=i.uniqueName,c=i.id,s=t.sectionId,l=n.find((function(e){return e._id===s}))||{},d=l.formId,u=l.queryString,p=(0,v.Mz)(o);return{id:d,src:"https://".concat(p,"/form/").concat(a||c,"/").concat(d),hiddenFields:u||{},shoudAppendGAClientId:p!==o}}var x=function(e){return(0,m.$j)(g)(e)},y=n(69652),b=n(50029),w=n(87794),j=n.n(w);function O(){return(O=(0,b.Z)(j().mark((function e(t){var n;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=S()){e.next=5;break}return e.next=4,new Promise((function(e){return setTimeout((function(){e(S())}),2e3)}));case 4:n=e.sent;case 5:t(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){if(!window.ga)return null;try{var e=window[window.GoogleAnalyticsObject];if(e){var t=e.getAll()[0];return new window.gaplugins.Linker(t).decorate("_").split("_?_ga=")[1]}return null}catch(n){return null}}var Z=n(85893);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,d.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,l.Z)(e);if(t){var o=(0,l.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,s.Z)(this,n)}}var I=function(e){(0,c.Z)(n,e);var t=C(n);function n(){var e;(0,o.Z)(this,n);for(var i=arguments.length,c=new Array(i),s=0;s<i;s++)c[s]=arguments[s];return e=t.call.apply(t,[this].concat(c)),(0,d.Z)((0,a.Z)(e),"state",{isGAInited:!e.props.shoudAppendGAClientId,isInitMessageSent:!1,gaClientId:null,hfQueryObj:{},clientQueryObj:{}}),(0,d.Z)((0,a.Z)(e),"setHfQueryObj",(function(){var t=e.props.hiddenFields;e.setState({hfQueryObj:(0,y.Z)(t)})}
1)),(0,d.Z)((0,a.Z)(e),"getQueryString",(function(){var t=e.props,n=t.shoudAppendGAClientId,r=t.previewMode,o=e.state,i=o.hfQueryObj,a=o.clientQueryObj,c=o.gaClientId,s=k({},i);(r||void 0!==a.test)&&(s.mode="preview"),n&&c&&(s._ga=c);var l=f.stringify(k(k({},s),a));return l?"?".concat(l):""})),(0,d.Z)((0,a.Z)(e),"initGA",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;clearInterval(e.intervalId),e.gaDetectFailedCount=0,e.intervalId=null,e.setState({isGAInited:!0,gaClientId:t})})),(0,d.Z)((0,a.Z)(e),"handleMessageFromForm",(function(t){var n=e.formRef.current,o=e.containerRef.current,i=e.state.isInitMessageSent;if(n&&t.source===n.contentWindow){if(!i){var a=N(),c=(0,r.default)(a,2),s=c[0],l=c[1],d={};s&&(d.utmData=l),n.contentWindow.postMessage(d,"*"),e.setState({isInitMessageSent:!0})}var u=(t.data||{}).height;u&&(o.style.height="".concat(u,"px")),(t.data||{}).scollFormToTop&&o.scrollIntoView()}})),(0,d.Z)((0,a.Z)(e),"gaDetectFailedCount",0),(0,d.Z)((0,a.Z)(e),"intervalId",null),(0,d.Z)((0,a.Z)(e),"formRef",u.createRef()),(0,d.Z)((0,a.Z)(e),"containerRef",u.createRef()),e}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){window.addEventListener("message",this.handleMessageFromForm),this.props.shoudAppendGAClientId&&function(e){O.apply(this,arguments)}(this.initGA);var e=f.parse(window.location.search);this.setState({clientQueryObj:e}),this.setHfQueryObj()}},{key:"componentDidUpdate",value:function(e){e.hiddenFields!==this.props.hiddenFields&&this.setHfQueryObj()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.handleMessageFromForm)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.src,r=e.isLazyRender,o=this.state.isGAInited,i="form_".concat(t),a="".concat(n).concat(this.getQueryString()),c=!r&&o;return(0,Z.jsx)("div",{className:(0,p.iv)(F(c)),"data-form-cont":!0,ref:this.containerRef,children:c&&(0,Z.jsx)("iframe",{ref:this.formRef,className:(0,p.iv)(R),title:i,src:a,allowFullScreen:"allowFullScreen",scrolling:"no",seamless:"seamless",frameBorder:"0"},i)})}}]),n}(u.Component);(0,d.Z)(I,"defaultProps",{isLazyRender:!1,shoudAppendGAClientId:!1});var D=x(I),R={width:"100%",height:"100%"},F=function(e){return{height:"600px",background:e?"none":"".concat(h.I," url('https://assets.fevercdn.com/nc/img/loading_bg_ripple.svg') no-repeat center")}},B=new Set(["utm_campaign","utm_content","utm_medium","utm_source","utm_term"]);function N(){var e=f.parse(window.location.search),t=Object.keys(e).filter((function(e){return B.has(e)}));return[t.length>0,t.reduce((function(t,n){return t[n]=e[n],t}),{})]}},66800:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var r={};n.r(r),n.d(r,{Template1:function(){return s},Template2:function(){return g}});var o={};n.r(o),n.d(o,{Template1:function(){return O},Template2:function(){return P}});n(67294);var i=n(26113),a=n(22902),c=n(85893);function s(e){var t=e.children,n=e.datas;return(0,c.jsx)("div",{className:(0,i.iv)(l),children:n.map((function(e){return(0,c.jsx)("div",{className:(0,i.iv)(d),children:(0,c.jsx)("div",{children:t(e)})},e.id)}))})}var l={display:"flex",flexFlow:"row wrap"},d={flex:"0 0 33.33%",paddingTop:"33.33%",position:"relative","> div":{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box",padding:"4px","@media(max-width: 568px)":{padding:"2px"}}},u=n(59499),p=n(16835),f=n(27812);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=5.7/7;function g(e){for(var t=e.children,n=e.datas,r=[],o=!0,a=0;a<n.length;a+=2){var s=[[n[a],o?w:b,o?v:1.8],[n[a+1],o?b:w,o?1.8:v]];r.push.apply(r,(0,f.Z)(s.filter((function(e){return(0,p.default)(e,1)[0]})).map((function(e){var n=(0,p.default)(e,3),r=n[0],o=n[1],a=n[2];return(0,c.jsx)("div",{className:(0,i.iv)(o),children:(0,c.jsx)("div",{children:t(r,a)})},r.id)}
1)))),o=!o}return(0,c.jsx)("div",{className:(0,i.iv)(x),children:r})}var x={display:"flex",flexFlow:"row wrap"},y={paddingTop:"39%",position:"relative","> div":{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box",padding:"4px","@media(max-width: 568px)":{padding:"2px"}}},b=m(m({},y),{},{flex:"0 0 70%"}),w=m(m({},y),{},{flex:"0 0 30%"}),j=n(68250);function O(e){var t=e.content,n=void 0===t?"":t,r=e.style,o=void 0===r?null:r;return(0,c.jsx)("div",{className:(0,i.iv)(S,{backgroundImage:"linear-gradient(to bottom, transparent 40%, ".concat(j.W,")")},o),children:(0,c.jsx)("div",{className:"line-clamp-4 ".concat((0,i.iv)(Z)),children:n})})}var S={width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"flex-end"},Z={textAlign:"left",maxHeight:"82px",whiteSpace:"pre-wrap",fontSize:"1em",fontWeight:500,lineHeight:1.3,textShadow:"0 0 2px ".concat(j.G),color:j.E,margin:"0 4% 4%",overflow:"hidden"};function P(e){var t=e.content,n=void 0===t?"":t,r=e.style,o=void 0===r?null:r;return(0,c.jsx)("div",{className:(0,i.iv)(k,{backgroundColor:"rgba(0, 0, 0, .5)"},o),children:(0,c.jsx)("div",{className:"line-clamp-5 ".concat((0,i.iv)(C)),children:n})})}var k={width:"100%",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center"},C={textAlign:"center",maxHeight:"160px",whiteSpace:"pre-wrap",fontSize:"1.5em",fontWeight:500,lineHeight:1.3,textShadow:"0 0 2px ".concat(j.G),color:j.E,margin:"0 10%",overflow:"hidden"};function I(e){var t=e.clickOpenLink,n=void 0!==t&&t,l=e.datas,d=e.isLazyRender,u=void 0!==d&&d,p=e.onImageClick,f=void 0===p?function(){}:p,h=e.style,m=void 0===h?null:h,v=e.templateId,g=r["Template".concat(v)]||s,x=o["Template".concat(v)]||s;return(0,c.jsx)("div",{className:(0,i.iv)(m),children:(0,c.jsx)(g,{datas:l,templateId:v,children:function(e,t){var r=e.bgPosition,o=e.id,i=e.imgUrl,s=e.isUploading,l=e.title,d=e.href,p=s||u;return(0,c.jsx)(a.Z,{alt:l,bgPosition:r,clickOpenLink:n,id:o,isLoading:p,onClick:f,ratio:t,style:D(p),url:i,href:d,children:(0,c.jsx)(x,{content:l})})}})})}var D=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?null:{"> *":{opacity:0,transition:"opacity .3s linear"},"@media(min-width: 568px)":{":hover > *":{opacity:1}}}}},13308:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(59499),o=n(4730),i=(n(67294),n(26113)),a=n(85893),c=["containerStyle","iconClass","iconStyle","onClick"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){var t=e.containerStyle,n=void 0!==t&&t,r=e.iconClass,s=void 0===r?"":r,d=e.iconStyle,p=void 0!==d&&d,f=e.onClick,h=void 0===f?function(){}:f,m=(0,o.Z)(e,c);return(0,a.jsx)("div",{className:(0,i.iv)(u,n),onClick:h,children:(0,a.jsx)("span",l({className:"".concat(s," ").concat((0,i.iv)(p))},m))})}var u={cursor:"pointer",position:"relative",display:"inline-block"}},22902:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});n(67294);var r=n(26113),o=n(85893);var i=function(e){var t=e.containerStyle,n=e.iconStyle;return(0,o.jsx)("div",{className:(0,r.iv)(a,t),children:(0,o.jsx)("img",{className:(0,r.iv)(c,n),src:"https://assets.fevercdn.com/nc/icons/ripple.svg",alt:"ripple"})})},a={width:"100%",height:"100%",position:"relative",backgroundColor:"rgba(51, 51, 51, 0.8)"},c={width:"20%",position:"absolute",top:0,left:0,right:0,bottom:0,margin:"auto"},s=n(78773);function l(e){var t=e.alt,n=void 0===t?"":t,a=e.bgPosition,c=(a=void 0===a?{x:.5,y:.5}:a).x,l=a.y,u=e.children,p=void 0!==u&&u,f=e.clickOpenLink,h=void 0!==f&&f,m=e.href,v=void 0===m?"":m,g=e.id,x=e.isLoading,y=void 0!==x&&x,b=e.url,
1w=void 0===b?"":b,j=e.onClick,O=void 0===j?function(){}:j,S=e.ratio,Z=void 0===S?1:S,P=e.style,k=void 0===P?null:P,C="url(".concat(w,") ").concat(100*c,"% ").concat(100*l,"% / cover no-repeat"),I=h&&Boolean(v);return(0,o.jsxs)(s.Z,{href:v,disabled:!I,children:[(0,o.jsx)("div",{className:(0,r.iv)(d,!y&&{background:C},k),onClick:function(e){I||O(g,e,Z)},children:y?(0,o.jsx)(i,{}):p}),(0,o.jsx)("noscript",{children:(0,o.jsx)("img",{src:w,alt:n})})]})}var d={width:"100%",height:"100%",position:"relative",cursor:"pointer"}},84805:function(e,t,n){"use strict";function r(e){return e.displayName||e.name||"Component"}n.d(t,{Z:function(){return r}})},58126:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});n(67294);var r=n(26113),o=n(52743),i=n(28882),a=n(85893);function c(e){var t=e.config,n=t.slider,c=t.styles.margins,u=e.children,p=e.datas,f=(0,i.Z)(i.x),h=f.bindResize,m=f.getScaleStyle;return(0,a.jsx)(o.Z,{config:n,style:s,children:p.map((function(e,t){return(0,a.jsx)("div",{className:(0,r.iv)(l,{zIndex:t+1}),id:"id_".concat(e._id),children:(0,a.jsx)("div",{className:(0,r.iv)(c,d,m(e._id)),ref:h(e._id),children:u(e)})},e._id)}))})}var s={margin:"8px"},l={position:"relative",":focus":{outline:"none"},":before":{content:" ",display:"table"},":after":{content:" ",display:"table"}},d={"& [data-card-content]":{transform:"scale(var(--scale, 1))"}}},30479:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(67294),u=n(26113),p=n(46066),f=n(3617),h=n(68250),m=n(59177),v=n(85893);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var b=function(e){(0,a.Z)(n,e);var t=y(n);function n(e){var o;return(0,r.Z)(this,n),o=t.call(this,e),(0,l.Z)((0,i.Z)(o),"onSwipe",(function(){var e=o.slider.current;e&&(e.innerSlider.clickable=!0)})),(0,l.Z)((0,i.Z)(o),"toggleTouchListener",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(o.divRef.current){var t=o.divRef.current,n=e?"addEventListener":"removeEventListener";t[n]("touchstart",o.touchStart),t[n]("touchmove",o.preventVerticalTouch,{passive:!1})}})),(0,l.Z)((0,i.Z)(o),"touchStart",(function(e){o.firstClientX=e.touches[0].clientX})),(0,l.Z)((0,i.Z)(o),"preventVerticalTouch",(function(e){if(o.clientX=e.touches[0].clientX-o.firstClientX,Math.abs(o.clientX)>5)return e.preventDefault(),e.returnValue=!1,!1})),(0,l.Z)((0,i.Z)(o),"handleAfterChange",(function(e){var t=o.props.datas.length,n=Math.round(e)%t;o.setState({activeIndex:n})})),o.slider=d.createRef(),o.divRef=d.createRef(),o.state={activeIndex:e.isMobileDevice?0:-1},o}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isMobileDevice;!e.isLazyRender&&t&&this.toggleTouchListener()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isMobileDevice,r=t.isLazyRender;e.isLazyRender&&!r&&n&&this.toggleTouchListener()}},{key:"componentWillUnmount",value:function(){this.props.isMobileDevice&&this.toggleTouchListener(!1)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.datas,r=e.config,o=r.slider,i=r.styles.margins,a=e.cardsPerRow,c=n.length<=a,s={};null!==o&&void 0!==o&&o.responsive&&!c&&o.responsive.forEach((function(e){var t=e.settings.slidesToShow;if(t&&t%1!==0){var n,r=t%1;n=t<3?r/t*100*.96:r/t*100,s["@media(max-width: ".concat(e.breakpoint,"px)")]={"& .slick-track":{paddingLeft:"".concat(n,"% !important")}}}}));var l=this.state.activeIndex,d=n.length>a,f=n.map((function(e,n){var r=n===l;return(0,v.jsx)("div",{className:(0,u.iv)(w),children:(0,v.jsx)("div",{className:(0,u.iv)(i),children:t(e,r)})},e._id)}));return(0,v.jsx)("div",{className:(0,u.iv)(x({"& .slick-track":{margin:"0 auto"}},s)),ref:this.divRef,children:(0,v.jsx)(p.Z,x(x({ref:this.slider,onSwipe:this.onSwipe,afterChange:this.handleAfterChange,className:"pdCard"},o),{},{arrows:d,prevArrow:d?k:null,nextArrow:d?C:null,customPaging:function(){return(0,v.jsx)("div",{className:(0,u.iv)(O),children:(0,v.jsx)("div",{className:(0,u.iv)(S)})})},dotsClass:"".concat((0,u.iv)(j)),appendDots:function(e){return(0,v.jsx)("div",{children:e})},infinite:!c,responsive:o.responsive?o.responsive.map((function(e){return x(x({},e),{},{settings:x(x({},e.settings),{},{arrows:d})})})):void 0,children:f}))})}}]),n}(d.Component),w={":focus":{outline:"none"},":before":{content:" ",display:"table"},":after":{content:" ",display:"table"}},j={display:"flex",position:"absolute",bottom:"-10px",textAlign:"center",justifyContent:"center",alignItems:"center",margin:0,listStyle:"none",width:"100%",flexWrap:"nowrap","> li":{display:"flex",justifyContent:"center",alignItems:"center"}},O={cursor:"pointer",".slick-active & > div":{width:"40px",backgroundColor:h.G,opacity:.75}},S={margin:"2px",height:"4px",width:"10px",borderRadius:"50px",transition:"all .3s linear",boxShadow:m.xF,backgroundColor:h.L},Z={position:"absolute",borderRadius:"50%",backgroundColor:h.L,zIndex:45,margin:"8px",boxShadow:m.xF},P={color:h.E,fontSize:"31px"},k=(0,v.jsx)(f.Z,{iconClass:"icon-angle-left2",styles:[Z,{bottom:"-28px",left:0}],iconStyles:[P]}),C=(0,v.jsx)(f.Z,{iconClass:"icon-angle-right2",styles:[Z,{bottom:"-28px",right:0}],iconStyles:[P]})},3617:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(27812),o=(n(67294),n(26113)),i=n(85893);function a(e){var t=e.styles,n=e.iconStyles,a=e.iconClass,s=e.onClick;return(0,i.jsx)("div",{className:o.iv.apply(void 0,[c].concat((0,r.Z)(t))),onClick:s,children:(0,i.jsx)("span",{className:"".concat(a," ").concat(o.iv.apply(void 0,(0,r.Z)(n)))})})}
1var c={display:"inline-flex",cursor:"pointer"}},98359:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(67294),u=n(26113),p=n(85893);function f(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var h=function(e){(0,a.Z)(n,e);var t=f(n);function n(e){var o;return(0,r.Z)(this,n),o=t.call(this,e),(0,l.Z)((0,i.Z)(o),"loadBgImage",(function(){var e=o.props,t=e.imgUrl,n=e.imgMobileUrl,r=window.matchMedia("(max-width: 480px)").matches?n:t,i=new window.Image;i.onload=function(){return o.setState({isLoaded:!0})},i.src=r})),o.state={isLoaded:!1},o}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.props.isLazyRender||this.loadBgImage()}},{key:"componentDidUpdate",value:function(e){e.isLazyRender&&!this.props.isLazyRender&&this.loadBgImage()}},{key:"render",value:function(){var e=this.props,t=e.imgUrl,n=e.imgMobileUrl,r=e.forwardRef,o=this.state.isLoaded;return(0,p.jsx)("div",{ref:r,className:(0,u.iv)(m,o&&v(t,n),o&&{opacity:1,filter:"blur(0)"})})}}]),n}(d.Component);(0,l.Z)(h,"defaultProps",{isLazyRender:!1,imgUrl:"",imgMobileUrl:"",forwardRef:function(){}});var m={width:"inherit",height:"inherit",transition:"filter .5s ease-out, opacity .5s ease-out",opacity:0,filter:"blur(10px)"},v=function(e,t){return{background:"url(".concat(e,") no-repeat center center"),backgroundSize:"cover","@media(max-width: 480px)":{backgroundImage:"url(".concat(t,")")}}}},36796:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(67294),u=n(26113),p=n(23859),f=n(85893);function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var m=function(e){(0,a.Z)(n,e);var t=h(n);function n(e){var o;(0,r.Z)(this,n),o=t.call(this,e),(0,l.Z)((0,i.Z)(o),"handleVideoError",(function(){(0,o.props.onError)("VideoBackground","video.load_failed")})),(0,l.Z)((0,i.Z)(o),"handleVideoLoaded",(function(){o.setState((function(e){return e.isVideoLoading?{isVideoLoading:!1}:null}))}));var a=e.videoUrl,c=e.isLazyRender;return o.videoRef=d.createRef(),o.state={isVideoLoading:!c,oldVideoUrl:a,oldIsLazyRender:c},o}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.videoRef.current&&(this.videoRef.current.muted=!0,this.videoRef.current.setAttribute("muted",""))}},{key:"componentDidUpdate",value:function(){this.videoRef.current&&(this.videoRef.current.muted=!0,this.videoRef.current.setAttribute("muted",""))}},{key:"render",value:function(){var e=this.props,t=e.isLazyRender,n=e.videoUrl,r=e.forwardRef,o=e.style,i=this.state.isVideoLoading;return(0,f.jsxs)("div",{className:(0,u.iv)(v),ref:r,children:[!t&&(0,f.jsx)("video",{ref:this.videoRef,className:(0,u.iv)(v,o,g),autoPlay:!0,loop:!0,muted:!0,playsInline:!0,onPlay:this.handleVideoLoaded,onError:this.handleVideoError,children:(0,f.jsx)("source",{src:n,type:"video/mp4"})},n),i&&(0,f.jsx)(p.Z,{style:(0,u.iv)(x)})]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.isLazyRender,r=e.videoUrl,o=t.oldIsLazyRender,i=t.oldVideoUrl;return!n&&o?{isVideoLoading:!0,oldIsLazyRender:n}:r!==i?{isVideoLoading:!0,oldVideoUrl:r}:null}}]),n}(d.Component);(0,l.Z)(m,"defaultProps",{isLazyRender:!1,forwardRef:function(){},onError:function(){},videoUrl:""});var v={width:"inherit",height:"inherit"},g={objectFit:"cover"},x={position:"absolute",top:0,right:0,left:0,bottom:0,zIndex:1,width:"30%",height:"30%",margin:"auto",backgroundColor:"transparent"}},3573:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(59499),o=n(67294),i=n(26113),a=n(47472),c=n(2083),s=n(59090),l=n(68250),d=n(59177),u=n(85893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=e.Button,n=e.Description,r=e.DiscountPrice,l=e.Image,d=void 0===l?(0,u.jsx)(a.Z,{}):l,p=e.Price,h=e.Title,b=e.cardBackgroundColor,w=e.templateCustomStyle,j=(w=void 0===w?{}:w).textWrapperMinHeight,O=void 0!==j&&j,S=e.dataFetchingMode,Z=f(f({},m),b?{backgroundColor:b}:{});return(0,u.jsxs)("div",{className:(0,i.iv)(Z),children:[(0,u.jsx)("div",{className:(0,i.iv)(g),children:(0,u.jsx)("div",{children:S?(0,u.jsx)(c.Z,{}):d})}),(0,u.jsxs)("div",{className:(0,i.iv)(v),"data-card-content":!0,children:[(0,u.jsx)("div",{className:(0,i.iv)(y,O&&{minHeight:O}),children:S?(0,u.jsx)(s.Z,{}):(0,u.jsxs)(o.Fragment,{children:[h,n,(0,u.jsxs)("div",{className:(0,i.iv)(x),children:[(0,u.jsx)("div",{className:(0,i.iv)({maxWidth:"60%"}),children:r}),(0,u.jsx)("div",{className:(0,i.iv)({paddingLeft:"5px",maxWidth:"40%"}),children:p})]})]})}),(0,u.jsx)("div",{className:(0,i.iv)({minHeight:"42px"}),children:!S&&t})]})]})}var m={position:"relative",borderRadius:"2px",backgroundColor:l.E,boxShadow:d.xF,"@media(max-width: 480px)":{boxShadow:d.j}},v={position:"relative",padding:"10px 5%"},g={position:"relative",paddingTop:"60%",borderRadius:"2px 2px 0 0",overflow:"hidden","> div":{position:"absolute",width:"100%",height:"100%",top:0,left:0}},x={display:"flex",alignItems:"flex-end",flexWrap:"nowrap"},y={minHeight:"150px",":after":{content:" ",display:"table"}}},80840:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(59499),o=(n(67294),n(26113)),i=n(47472),a=n(2083),c=n(59090),s=n(68250),l=n(59177),d=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){var t=e.Image,n=void 0===t?(0,d.jsx)(i.Z,{}):t,s=e.Subtitle,l=e.Title,p=e.Description,x=e.Button,y=e.cardBackgroundColor,b=e.dataFetchingMode,w=e.isActive,j=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},y?{backgroundColor:y}:{});return(0,d.jsxs)("div",{className:"cc-card-3 ".concat(w?"is-active":""," ").concat((0,o.iv)(f)),children:[(0,d.jsx)("div",{className:(0,o.iv)(h),children:(0,d.jsx)("div",{className:"cc-img",children:b?(0,d.jsx)(a.Z,{}):n})}),(0,d.jsx)("div",{className:"cc-white-panel ".concat((0,o.iv)(m,j)),children:(0,d.jsx)("div",{"data-card-content":!0,children:b?(0,d.jsx)(c.Z,{}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)("div",{className:(0,o.iv)(v),children:[s,l]}),(0,d.jsxs)("div",{className:"cc-panel-text ".concat((0,o.iv)(g)),children:[p,x]})]})})})]})}var f={position:"relative",width:"100%",paddingTop:"135%",borderRadius:"8px",overflow:"hidden",backgroundColor:s.E,cursor:"pointer",boxShadow:l.ql,":hover":{"& .cc-img":{transform:"scale(1.05)"},"& .cc-white-panel":{transform:"translateY(0)"},"& .cc-panel-text":{opacity:1,maxHeight:"200px"}},"&.is-active":{"& .cc-img":{transform:"scale(1.05)"},"& .cc-white-panel":{transform:"translateY(0)"},"& .cc-panel-text":{opacity:1,maxHeight:"200px"}},"@media(max-width: 550px)":{"&.is-active, .slick-current &":{"& .cc-img":{transform:"scale(1.05)"},"& .cc-white-panel":{transform:"translateY(0)"},"& .cc-panel-text":{opacity:1,maxHeight:"200px"}}},"@media(max-width: 480px)":{boxShadow:l.j}},h={position:"absolute",top:0,left:0,width:"100%",height:"100%","> div":{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.7s ease",display:"block"}},m={position:"absolute",bottom:0,left:0,width:"100%",backgroundColor:s.E,padding:"5%",transform:"translateY(15%)",transition:"transform 0.5s ease-out",boxShadow:"0 -10px 20px rgba(0,0,0,0.05)",boxSizing:"border-box"},v={minHeight:"80px"},g={opacity:0,maxHeight:0,transition:"opacity 0.3s ease, max-height 0.3s ease"}},11748:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(59499),o=n(67294),i=n(26113),a=n(47472),c=n(2083),s=n(59090),l=n(68250),d=n(59177),u=n(85893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=e.Button,n=e.DiscountPrice,r=e.Image,l=void 0===r?(0,u.jsx)(a.Z,{}):r,d=e.Price,p=e.Title,h=e.cardBackgroundColor,b=e.templateCustomStyle,w=(b=void 0===b?{}:b).textWrapperMinHeight,j=void 0!==w&&w,O=e.dataFetchingMode,S=f(f({},m),h?{backgroundColor:h}:{});return(0,u.jsxs)("div",{className:(0,i.iv)(S),children:[(0,u.jsx)("div",{className:(0,i.iv)(g),children:(0,u.jsx)("div",{children:O?(0,u.jsx)(c.Z,{}):l})}),(0,u.jsxs)("div",{className:(0,i.iv)(v),"data-card-content":!0,children:[(0,u.jsx)("div",{className:(0,i.iv)(y,j&&{minHeight:j}),children:O?(0,u.jsx)(s.Z,{}):(0,u.jsxs)(o.Fragment,{children:[p,(0,u.jsxs)("div",{className:(0,i.iv)(x),children:[(0,u.jsx)("div",{className:(0,i.iv)({maxWidth:"60%"}),children:n}),(0,u.jsx)("div",{className:(0,i.iv)({paddingLeft:"5px",maxWidth:"40%"}),children:d})]})]})}),(0,u.jsx)("div",{className:(0,i.iv)({minHeight:"33px"}),children:!O&&t})]})]})}var m={position:"relative",borderRadius:"2px",backgroundColor:l.E,boxShadow:d.xF,"@media(max-width: 480px)":{boxShadow:d.j}},v={position:"relative",padding:"12px",":after":{content:" ",display:"table",clear:"both"}},g={position:"relative",paddingTop:"100%",borderRadius:"2px 2px 0 0",overflow:"hidden","> div":{position:"absolute",width:"100%",height:"100%",top:0,left:0}},x={display:"flex",alignItems:"flex-end",flexWrap:"nowrap"},y={minHeight:"105px",":after":{content:" ",display:"table"}}},47099:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),o=(n(67294),n(26113)),i=n(47472),a=n(2083),c=n(59090),s=n(68250),l=n(59177),d=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=e.Image,n=void 0===t?(0,d.jsx)(i.Z,{}):t,r=e.Title,s=e.cardBackgroundColor,l=e.dataFetchingMode,u=p(p({},h),s?{backgroundColor:s}:{});return(0,d.jsxs)("div",{className:(0,o.iv)(u),children:[(0,d.jsx)("div",{className:(0,o.iv)(v),children:(0,d.jsx)("div",{children:l?(0,d.jsx)(a.Z,{}):n})}),(0,d.jsx)("div",{className:(0,o.iv)(m),"data-card-content":!0,children:(0,d.jsx)("div",{className:(0,o.iv)(g),children:l?(0,d.jsx)(c.Z,{}):r})})]})}var h={position:"relative",borderRadius:"2px",backgroundColor:s.E,boxShadow:l.xF,"@media(max-width: 480px)":{boxShadow:l.j}},m={position:"relative",padding:"10px",":after":{content:" ",display:"table",clear:"both"}},v={position:"relative",paddingTop:"100%",borderRadius:"2px 2px 0 0",overflow:"hidden","> div":{position:"absolute",width:"100%",height:"100%",top:0,left:0}},g={minHeight:"85px",display:"flex",flexDirection:"column",justifyContent:"center",":after":{content:" ",display:"table"}}},87711:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),o=(n(67294),n(26113)),i=n(47472),a=n(2083),c=n(59090),s=n(68250),l=n(59177),d=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=e.Image,n=void 0===t?(0,d.jsx)(i.Z,{}
1):t,r=e.Title,s=e.cardBackgroundColor,l=e.dataFetchingMode,u=p(p({},h),s?{backgroundColor:s}:{});return(0,d.jsx)("div",{className:(0,o.iv)(u),children:(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:(0,o.iv)(v),children:l?(0,d.jsx)(a.Z,{}):n}),(0,d.jsx)("div",{className:(0,o.iv)(m),"data-card-content":!0,children:(0,d.jsx)("div",{className:(0,o.iv)(g),children:l?(0,d.jsx)(c.Z,{}):r})})]})})}var h={position:"relative",backgroundColor:s.E,boxShadow:l.xF,"@media(max-width: 480px)":{boxShadow:l.j},paddingTop:"30%","> div":{position:"absolute",width:"100%",height:"100%",top:0}},m={display:"inline-block",position:"relative",width:"70%",height:"100%"},v={display:"inline-block",position:"relative",width:"30%",height:"100%",overflow:"hidden"},g={maxHeight:"82px",position:"absolute",top:0,right:0,left:0,bottom:0,margin:"auto 5%",display:"flex",flexDirection:"column",justifyContent:"center"}},74370:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(59499),o=n(67294),i=n(26113),a=n(47472),c=n(2083),s=n(59090),l=n(44094),d=n(68250),u=n(59177),p=n(85893);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=e.Button,n=e.Description,r=e.Image,u=void 0===r?(0,p.jsx)(a.Z,{}):r,f=e.Subtitle,m=e.Title,w=e.cardBackgroundColor,j=e.scaleBgWhenHover,O=void 0===j||j,S=e.dataFetchingMode;return(0,p.jsxs)("div",{className:(0,i.iv)(v),children:[(0,p.jsx)("div",{className:(0,i.iv)(g,O&&{"@media(min-width: 768px)":{":hover + div":{transform:"scale(1.3)"},":hover + div + div":h({},w?{backgroundColor:(0,l.$)(w,.8)}:{backgroundColor:d.W}),":hover button":{letterSpacing:"1px"}}}),children:(0,p.jsx)("div",{className:(0,i.iv)(x),"data-card-content":!0,children:S?(0,p.jsx)(s.Z,{}):(0,p.jsxs)(o.Fragment,{children:[(0,p.jsxs)("div",{className:(0,i.iv)({position:"relative",zIndex:15}),children:[f,m,n]}),(0,p.jsx)("div",{className:(0,i.iv)({position:"relative",zIndex:15}),children:t})]})})}),(0,p.jsx)("div",{className:(0,i.iv)(y),children:S?(0,p.jsx)(c.Z,{}):u}),(0,p.jsx)("div",{className:(0,i.iv)(b(w))})]})}var v={backgroundColor:d.E,position:"relative",boxShadow:u.xF,"@media(max-width: 480px)":{boxShadow:u.j},paddingTop:"135%",overflow:"hidden"},g={position:"absolute",top:0,left:0,zIndex:3,width:"100%",height:"100%"},x={position:"relative",width:"70%",height:"calc(100% - 30px)",padding:"15px 25% 15px 5%",display:"flex",flexDirection:"column",justifyContent:"space-between"},y={position:"absolute",width:"100%",height:"100%",top:0,left:0,overflow:"hidden",transition:"transform 1s",zIndex:1},b=function(e){return h({position:"absolute",width:"100%",height:"100%",top:0,left:0,zIndex:2,transition:"background-color 1s"},e?{backgroundColor:(0,l.$)(e,.5)}:{backgroundColor:"rgba(0, 0, 0, .5)"})}},30016:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(59499),o=n(67294),i=n(26113),a=n(47472),c=n(2083),s=n(59090),l=n(68250),d=n(59177),u=n(85893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=e.Author,n=e.Button,r=e.Description,l=e.Image,d=void 0===l?
1(0,u.jsx)(a.Z,{}):l,p=e.Label,h=e.Title,x=e.cardBackgroundColor,w=e.dataFetchingMode,j=f({},x?{backgroundColor:x}:{});return(0,u.jsxs)("div",{className:(0,i.iv)(m),children:[!w&&p,(0,u.jsx)("div",{className:(0,i.iv)(g),children:(0,u.jsx)("div",{children:w?(0,u.jsx)(c.Z,{}):d})}),(0,u.jsxs)("div",{className:(0,i.iv)(v,j),"data-card-content":!0,children:[(0,u.jsx)("div",{className:(0,i.iv)(y),children:w?(0,u.jsx)(s.Z,{}):(0,u.jsxs)(o.Fragment,{children:[h,r]})}),(0,u.jsx)("div",{className:(0,i.iv)(b),children:!w&&(0,u.jsxs)(o.Fragment,{children:[t,n]})})]})]})}var m={position:"relative"},v={position:"relative",zIndex:2,margin:"-60px 15px 0",padding:"10px",backgroundColor:l.E,borderRadius:"15px",boxShadow:d.xF,"@media(max-width: 480px)":{boxShadow:d.j},":after":{content:" ",display:"table",clear:"both"}},g={position:"relative",zIndex:1,paddingTop:"100%",backgroundColor:l.E,borderRadius:"15px",overflow:"hidden",boxShadow:d.xF,"@media(max-width: 480px)":{boxShadow:d.j},"> div":{position:"absolute",width:"100%",height:"100%",top:0,left:0}},x={":after":{content:" ",display:"table"}},y=f({minHeight:"115px"},x),b=f({minHeight:"33px"},x)},84618:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),o=(n(67294),n(26113)),i=n(47472),a=n(2083),c=n(59090),s=n(68250),l=n(59177),d=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=e.Image,n=void 0===t?(0,d.jsx)(i.Z,{}):t,r=e.Title,s=e.cardBackgroundColor,l=e.dataFetchingMode,u=p(p({},h),s?{backgroundColor:s}:{});return(0,d.jsxs)("div",{className:(0,o.iv)(u),children:[(0,d.jsx)("div",{className:(0,o.iv)(v),children:(0,d.jsx)("div",{children:l?(0,d.jsx)(a.Z,{}):n})}),(0,d.jsx)("div",{className:(0,o.iv)(m),"data-card-content":!0,children:(0,d.jsx)("div",{className:(0,o.iv)(g),children:l?(0,d.jsx)(c.Z,{}):r})})]})}var h={position:"relative",borderRadius:"2px",backgroundColor:s.E,boxShadow:l.xF,"@media(max-width: 480px)":{boxShadow:l.j}},m={position:"relative",padding:"10px",":after":{content:" ",display:"table",clear:"both"}},v={position:"relative",paddingTop:"54%",borderRadius:"2px 2px 0 0",overflow:"hidden","> div":{position:"absolute",width:"100%",height:"100%",top:0,left:0}},g={minHeight:"70px",display:"flex",flexDirection:"column",justifyContent:"center",":after":{content:" ",display:"table"}}},40923:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),o=(n(67294),n(26113)),i=n(47472),a=n(2083),c=n(59090),s=n(44094),l=n(68250),d=n(59177),u=n(85893);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){var t=e.Image,n=void 0===t?(0,u.jsx)(i.Z,{}):t,r=e.Subtitle,s=e.Title,l=e.Description,d=e.Button,p=e.dataFetchingMode,f=e.isActive,y=e.cardBackgroundColor;return(0,u.jsxs)("div",{className:"cc-card-1 ".concat(f?"is-active":""," ").concat((0,o.iv)(h)),children:[(0,u.jsx)("div",{className:(0,o.iv)(m),children:(0,u.jsx)("div",{className:"cc-img",children:p?(0,u.jsx)(a.Z,{}):n})}),(0,u.jsx)("div",{className:"cc-content ".concat((0,o.iv)(v(y))),children:(0,u.jsx)("div",{"data-card-content":!0,children:p?(0,u.jsx)(c.Z,{}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:(0,o.iv)(g),children:[r,s]}),(0,u.jsxs)("div",{className:"cc-hidden-text ".concat((0,o.iv)(x)),children:[l,d]})]})})})]})}var h={position:"relative",width:"100%",paddingTop:"135%",borderRadius:"8px",overflow:"hidden",backgroundColor:l.P,cursor:"pointer",boxShadow:d.ql,transition:"box-shadow 0.3s ease","@media(max-width: 480px)":{boxShadow:d.j},":hover":{boxShadow:d.Ac,"& .cc-img":{transform:"scale(1.1)"},"& .cc-content":{transform:"translateY(0)"},"& .cc-hidden-text":{opacity:1,maxHeight:"200px",transitionDelay:"0.1s"}},"&.is-active":{boxShadow:d.Ac,"& .cc-img":{transform:"scale(1.1)"},"& .cc-content":{transform:"translateY(0)"},"& .cc-hidden-text":{opacity:1,maxHeight:"200px",transitionDelay:"0.1s"}},"@media(max-width: 550px)":{"&.is-active":{boxShadow:d.Ac,"& .cc-img":{transform:"scale(1.1)"},"& .cc-content":{transform:"translateY(0)"},"& .cc-hidden-text":{opacity:1,maxHeight:"200px",transitionDelay:"0.1s"}}}},m={position:"absolute",top:0,left:0,width:"100%",height:"100%","> div":{width:"100%",height:"100%",objectFit:"cover",transition:"transform 0.7s ease",display:"block"}},v=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({position:"absolute",bottom:0,left:0,width:"100%",padding:"5%",display:"flex",flexDirection:"column",justifyContent:"flex-end",transform:"translateY(15%)",transition:"transform 0.5s ease",boxSizing:"border-box"},e?{background:"linear-gradient(to top, ".concat(e," 0%, ").concat((0,s.$)(e,.9)," 40%, transparent 100%)")}:{background:"linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 40%, transparent 100%)"})},g={minHeight:"55px"},x={opacity:0,maxHeight:0,transition:"opacity 0.5s ease, max-height 0.5s ease"}},97308:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),o=(n(67294),n(26113)),i=n(47472),a=n(2083),c=n(59090),s=n(68250),l=n(59177),d=n(85893);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=e.Image,n=void 0===t?(0,d.jsx)(i.Z,{}):t,r=e.Subtitle,s=e.Title,l=e.Description,u=e.Button,f=e.cardBackgroundColor,y=e.dataFetchingMode,b=e.isActive,w=p(p({},h),f?{backgroundColor:f}:{});return(0,d.jsxs)("div",{className:"cc-card-2 ".concat(b?"is-active":""," ").concat((0,o.iv)(w)),children:[(0,d.jsx)("div",{className:(0,o.iv)(m),children:(0,d.jsx)("div",{className:"cc-img",children:y?(0,d.jsx)(a.Z,{}):n})}),(0,d.jsx)("div",{className:(0,o.iv)(v),"data-card-content":!0,children:(0,d.jsx)("div",{className:"cc-center-content ".concat((0,o.iv)(g)),children:y?(0,d.jsx)(c.Z,{}):(0,d.jsxs)(d.Fragment,{children:[r,s,l,u]})})}),(0,d.jsx)("div",{className:"cc-bottom-label ".concat((0,o.iv)(x)),children:!y&&r})]})}var h={position:"relative",width:"100%",paddingTop:"135%",borderRadius:"8px",overflow:"hidden",backgroundColor:s.G,cursor:"pointer",boxShadow:l.ql,":hover":{"& .cc-img":{filter:"blur(4px)",opacity:.5,transform:"scale(1.05)"},"& .cc-center-content":{opacity:1,transform:"translate(-50%, -50%) scale(1)"},"& .cc-bottom-label":{opacity:0}
1},"&.is-active":{"& .cc-img":{filter:"blur(4px)",opacity:.5,transform:"scale(1.05)"},"& .cc-center-content":{opacity:1,transform:"translate(-50%, -50%) scale(1)"},"& .cc-bottom-label":{opacity:0}},"@media(max-width: 550px)":{"&.is-active, .slick-current &":{"& .cc-img":{filter:"blur(4px)",opacity:.5,transform:"scale(1.05)"},"& .cc-center-content":{opacity:1,transform:"translate(-50%, -50%) scale(1)"},"& .cc-bottom-label":{opacity:0}}},"@media(max-width: 480px)":{boxShadow:l.j}},m={position:"absolute",top:0,left:0,width:"100%",height:"100%","> div":{width:"100%",height:"100%",objectFit:"cover",transition:"all 0.7s ease",display:"block"},"& .cc-img":{transition:"all 0.7s ease"}},v={position:"absolute",top:0,left:0,width:"100%",height:"100%",transformOrigin:"center",pointerEvents:"none","& > *":{pointerEvents:"auto"}},g={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0.9)",width:"100%",padding:"5%",textAlign:"center",opacity:0,transition:"all 0.5s ease",zIndex:10,boxSizing:"border-box"},x={position:"absolute",bottom:"5%",left:0,width:"100%",textAlign:"center",transition:"opacity 0.3s ease",boxSizing:"border-box"}},69734:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(59499),o=n(27812),i=n(4730),a=(n(67294),n(26113)),c=n(82492),s=n.n(c),l=n(85893),d=["isYinCravedBtn"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=e.lines,n=void 0===t?1:t,r=e.elementType,c=void 0===r?"div":r,u=e.styles,f=void 0===u?[]:u,m=e.value,v=e.onClick,g=e.fieldName,x=e.maxLength,y=c,b=v?{onClick:v}:{},w=s().apply(void 0,[{}].concat((0,o.Z)(f))),j=w.isYinCravedBtn,O=void 0!==j&&j,S=(0,i.Z)(w,d);return O&&(S=p(p({},S),{},{border:"1px solid ".concat(S.backgroundColor||"initial"),color:S.backgroundColor||"initial",backgroundColor:"transparent"})),"bold"===S.fontWeight&&(S.fontWeight=500),Boolean(m)&&(0,l.jsx)(y,p(p({className:"line-clamp-".concat(n," ").concat((0,a.iv)(h,"button"===c&&{":focus":{outline:"none"}},n>1&&{whiteSpace:"pre-wrap"},S)),"data-field-name":g,unselectable:"on"},b),{},{children:Number.isInteger(x)?String(m).slice(0,x):m}))}var h={overflow:"hidden",fontWeight:300,margin:0,userSelect:"none"}},59090:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(67294);var r=n(26113),o=n(68250),i=n(85893);function a(){return(0,i.jsxs)("div",{className:(0,r.iv)(c),children:[(0,i.jsx)("div",{className:(0,r.iv)(s,{width:"90%",marginBottom:"10px"})}),(0,i.jsx)("div",{className:(0,r.iv)(s,{width:"65%",marginBottom:"10px"})}),(0,i.jsx)("div",{className:(0,r.iv)(s,{width:"70%"})})]})}var c={width:"100%"},s={content:" ",display:"block",height:"10px",animation:"placeHolderAnimate 1.5s infinite",background:o.I}},2083:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(67294);var r=n(26113),o=n(68250),i=n(85893);function a(){return(0,i.jsx)("div",{className:(0,r.iv)(c)})}var c={width:"100%",height:"100%",animation:"placeHolderAnimate 1.5s infinite",background:o.I}},47472:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(67294);var r=n(26113),o=n(68250),i=n(85893);function a(e){var t=e.imgUrl,n=void 0===t?"https://assets.fevercdn.com/nc/icons/pic.svg":t,a=e.children,l=e.scaleWhenHover,d=void 0===l||l,u=e.isLazyRender,p=void 0!==u&&u,f=e.style,h=void 0!==f&&f,m=e.placeholderColor,v=void 0===m?o.F:m,g=n.includes(".svg")?"auto":"cover";return(0,i.jsxs)("div",{className:(0,r.iv)(c,h),children:[(0,i.jsx)("div",{className:"cc-img ".concat((0,r.iv)(s,d&&{"@media(min-width: 768px)":{":hover":{transform:"scale(1.3)"}}},p?{animation:"placeHolderAnimate 1.5s infinite"}:{background:"url(".concat(n,") center no-repeat ").concat(v),backgroundSize:g,WebkitBackgroun
1dSize:g,MozkitBackgroundSize:g,OBackgroundSize:g}))}),a]})}var c={position:"relative",width:"100%",height:"100%",overflow:"hidden"},s={position:"relative",width:"100%",height:"100%",transition:"transform .5s"}},23859:function(e,t,n){"use strict";n(67294);var r=n(26113),o=n(85893);t.Z=function(e){var t=e.style;return(0,o.jsx)("img",{className:(0,r.iv)(i,t),src:"https://assets.fevercdn.com/nc/icons/ripple.svg",alt:"ripple"})};var i={width:"100%",height:"100%",backgroundColor:"rgba(220, 220, 220, .5)"}},52743:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});n(67294);var r=n(26113),o=n(85893);function i(e){var t=e.children,n=e.config,i=e.style;return(0,o.jsx)("div",{className:(0,r.iv)(a,c(n),i),children:t})}var a={display:"flex",justifyContent:"center",flexWrap:"wrap",position:"relative"};function c(e){var t=e.slidesToShow,n=void 0===t?3:t,r=e.responsive,o=void 0===r?[]:r,i={"> *":{flex:"0 1 ".concat(s(n),"%")}};return o.reduce((function(e,t){var n=t.breakpoint,r=t.settings.slidesToShow;return e["@media(max-width: ".concat(n,"px)")]={flex:"0 1 ".concat(s(r),"%")},e}),i["> *"]),i}function s(e){return Math.floor(100/e*100)/100}},66671:function(e,t){"use strict";t.Z={normal:.583,fit:.833,full:1}},23653:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(27812);function o(e,t){var n=e.slidesToShow||3,o=e.responsive;if(Array.isArray(o)){var i=o.map((function(e){return e.breakpoint})).filter((function(e){return e>t}));if(i.length>0){var a=Math.min.apply(Math,(0,r.Z)(i));n=o.find((function(e){return e.breakpoint===a})).settings.slidesToShow}}return n}},36725:function(e,t,n){"use strict";n.d(t,{Z:function(){return Si}});var r={};n.r(r),n.d(r,{Card1:function(){return Ue},Card10:function(){return Wt},Card2:function(){return $e},Card3:function(){return rt},Card4:function(){return at},Card5:function(){return ut},Card6:function(){return bt},Card7:function(){return It},Card8:function(){return Ft},Card9:function(){return Ht}});var o={};n.r(o),n.d(o,{Template1:function(){return Jn},Template2:function(){return cr},Template3:function(){return Or},Template4:function(){return Wr}});var i=n(67294),a=n(70131),c=n(14416),s=n(92777),l=n(82262),d=n(10748),u=n(45959),p=n(63553),f=n(37247),h=n(59499),m=n(26113),v=n(58229),g=n(83141),x=n(98944),y=n(89823),b=n(79405),w=n(85893);function j(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var O=function(e){(0,u.Z)(n,e);var t=j(n);function n(e){var r;(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"textBoxRef",null),(0,h.Z)((0,d.Z)(r),"loadYoutubeIframe",(function(){var e=r.textBoxRef.querySelectorAll("[data-y-src]");Array.from(e).forEach((function(e){!e.src&&e.dataset.ySrc&&(e.src=e.dataset.ySrc)}))}));var o=e.content;return!e.query.isEditor&&(o=o.map((function(t){return t.replace(/<i[^<>]+?src="(.+?)"[^<>]*?>/gi,(function(t,n){if(-1===n.indexOf("www.youtube.com/embed")){var r=(0,b.gP)({url:n,size:600,env:e.query.ENVIR});return t.replace(/src="/i,'data-msrc="'.concat(r,'" data-src="'))}return t.replace(/src="/i,'data-y-src="')})).replace(/<img[^<>]*?>|<iframe[^<>]*?>/gi,(function(e){return-1!==e.indexOf('class="')?e.replace(/class="/i,'class="lazyload '):e.replace(/>/i,'class="lazyload">')})).replace(/<img[^<>]+?data-width="([\d.]+?)"[^<>]+?data-ratio="([\d.]+?)"[^<>]*?>/gi,(function(e,t,n){var r=(0,m.iv)({".lazyload":{width:"".concat(t,"px"),paddingTop:"".concat(100*n,"%"),height:"0 !important"}});return e.replace(/class="/i,'class="'.concat(r," "))}))}))),r.state={content:o},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.props.isLazyRender||this.loadYoutubeIframe()}},{key:"componentDidUpdate",value:function(e){var t=this.props.isLazyRender;e.isLazyRender&&!t&&this.loadYoutubeIframe()}},{key:"render",value:function(){var e=this,t=this.props,n=t._id,r=t.order,o=t.vertical,i=t.textColor,a=t.query.isEditor,c=t.render
1SettingButton,s=t.forwardRef,l=this.state.content,d=l.length;return(0,w.jsxs)(v.Z,{sectionId:n,forwardRef:s,children:[a&&c(n),(0,w.jsx)(g.Z,{sectionId:n,isEditor:a,children:(0,w.jsx)(x.Z,{sectionId:n,children:(0,w.jsx)("div",{id:"TextBox-".concat(n),className:(0,m.iv)(Z(o),{color:i}),ref:function(t){return e.textBoxRef=t},children:l.length>0&&l.map((function(e,t){return(0,w.jsx)(y.Z,{content:e,customClass:"pure-u-1 pure-u-md-1-".concat(d," ").concat((0,m.iv)(P(r.indexOf(t+1)))),shouldLazyLoad:!a},"TextBox".concat(n,"-").concat(t))}))})})})]})}}]),n}(i.Component);O.defaultProps={renderSettingButton:function(){return!1}};var S=O;function Z(e){var t;switch(e){case"top":t="flex-start";break;case"bottom":t="flex-end";break;default:t="center"}return{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"center",alignItems:t,"@media(max-width: 480px)":{flexDirection:"column"}}}function P(e){return-1!==e?{"@media(max-width: 480px)":{order:e+1}}:{}}var k=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,vertical:o.vertical,content:o.content,order:o.order,textColor:o.textColor}}))(S),C=n(95355),I=n(45374),D=n(78773);function R(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var F=function(e){(0,u.Z)(n,e);var t=R(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"onLoad",(function(){r.setState({loading:!1})})),r.state={loading:!0},r}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.state.loading,t=this.props,n=t._id,r=t.query,o=r.isEditor,i=r.isMobile,a=t.imgUrl,c=t.mbImgUrl,s=t.originalImgUrl,l=t.layout,d=t.height,u=t.mbHeight,p=t.srcUrl,f=t.srcTarget,h=i&&c?c:a,y=i&&s||h;return(0,w.jsx)(v.Z,{sectionId:n,children:(0,w.jsx)(g.Z,{sectionId:n,isEditor:o,children:(0,w.jsx)(x.Z,{sectionId:n,children:(0,w.jsxs)("div",{className:(0,m.iv)(B({layout:l,mbHeight:u})),children:[a&&p?(0,w.jsx)(D.Z,{href:p,target:f,children:(0,w.jsx)("img",{onLoad:this.onLoad,src:y,className:(0,m.iv)(N(!e)),alt:"img"})}):(0,w.jsx)("img",{onLoad:this.onLoad,src:y,className:(0,m.iv)(N(!e)),alt:"loading"}),a&&e&&(0,w.jsx)(I.Z,{height:d,mbHeight:u})]})})})})}}]),n}(i.Component),B=function(e){var t=e.layout;return{width:e.mbHeight?"initial":"100%",padding:"".concat("full"===t?0:"1rem 0 1rem 0"),"@media(max-width: 480px)":{padding:0}}},N=function(e){return{display:e?"block":"none",width:"inherit",maxWidth:"100%",margin:"auto",imageRendering:"-webkit-optimize-contrast"}};var E=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{},i=o._id,a=o.imgUrl,c=o.height,s=o.mbHeight;return{_id:i,imgUrl:a,layout:o.layout,mbImgUrl:o.mbImgUrl,originalImgUrl:o.originalImgUrl,srcUrl:o.srcUrl,srcTarget:o.srcTarget,height:c,mbHeight:s}}))(F),z=n(46066),T=n(28949),H=n(2475);function M(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var U=function(e){(0,u.Z)(n,e);var t=M(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"onLoad",(function(){r.setState({loading:!1})})),r.state={loading:!0},r}return(0,l.Z)(n,[{key:"render",value:function(){var e=this,t=this.state.loading,n=this.props,r=n._id,o=n.data,i=n.layout,a=n.height,c=n.query.isEditor;return(0,w.jsx)(v.Z,{sectionId:r,children:(0,w.jsx)(g.Z,{sectionId:r,isEditor:c,children:(0,w.jsx)(x.Z,{sectionId:r,children:(0,w.jsxs)("div",{className:(0,m.iv)(H.UF,L(i)),children:[o.length>0&&(0,w.jsx)("div",{className:"pure-u-1 ".concat((0,m.iv)({display:t?"none":"block"})),children:(0,w.jsx)(z.Z,{dots:!0,dotsClass:"slick-dots ".concat((0,m.iv)({bottom:"1rem"})),infinite:!0,speed:500,slidesToShow:1,swipeToSlide:!0,autoplay:!t,adaptiveHeight:!0,nextArrow:(0,w.jsx)(T.Z,{css:{right:".5rem"},type:"next"}),prevArrow:(0,w.jsx)(T.Z,{css:{left:".5rem"},type:"prev"}),children:o.map((function(t,n){var o=t.imgUrl,i=t.srcUrl,a=t.srcTarget;return(0,w.jsx)("div",{ref:"slick".concat(r).concat(n),children:(0,w.jsx)(D.Z,{href:i,target:a,children:(0,w.jsx)("img",{onLoad:function(){0===n&&e.onLoad()},src:o,className:(0,m.iv)(_),alt:""})})},"slick".concat(r).concat(n))}))})}),o.length>0&&t&&(0,w.jsx)(I.Z,{height:a,style:{width:"100%"}})]})})})})}}]),n}(i.Component),L=function(e){return{padding:"".concat("full"===e?0:"1rem 0 1rem 0"),"@media(max-width: 480px)":{padding:0}}},_={width:"auto",maxWidth:"100%",margin:"auto"};var A=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,data:o.data,layout:o.layout,height:o.height}}))(U),W=n(9116);var Y=function(e){var t=e._id,n=e.vidUrl,r=e.layout,o=e.query.isEditor;return(0,w.jsx)(v.Z,{sectionId:t,children:(0,w.jsx)(g.Z,{sectionId:t,isEditor:o,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsx)("div",{className:(0,m.iv)(V(r)),children:""!==n&&(0,w.jsx)(W.Z,{url:n})})})})})},V=function(e){return{padding:"".concat("full"===e?0:"1rem 0 1rem 0"),"@media(max-width: 480px)":{padding:0}}};
1var q=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,vidUrl:o.vidUrl,layout:o.layout}}))(Y),K=n(4730),G=n(68250),$=n(55869),J=n(38042),Q=["srcUrl","srcTarget"];function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var te=function(e){var t=e._id,n=e.index,r=e.data,o=e.layout,i=e.query,a=i.isMobile,c=i.isEditor,s=(0,$.wk)({data:r,layout:o});return(0,w.jsx)(v.Z,{sectionId:t,children:(0,w.jsx)(g.Z,{sectionId:t,isEditor:c,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsx)("div",{className:(0,m.iv)(H.Kw,ne),children:r.length>0&&r.map((function(e,t){var r=e.srcUrl,i=(e.srcTarget,(0,K.Z)(e,Q));return(0,w.jsx)("div",{className:(0,m.iv)(s,oe),children:(0,w.jsx)(D.Z,{href:r,target:a?"_self":"_blank",style:re,children:(0,w.jsx)(J.Z,ee(ee({},i),{},{layout:o}))})},"listfeed".concat(n,"-").concat(t))}))})})})})},ne={margin:"1.5rem 0 0 0","@media(max-width: 768px)":{margin:"1.5rem 1rem 0 1rem"}},re={color:G.P,textDecoration:"none"},oe={margin:"0 1rem .5rem 1rem","@media(max-width: 768px)":{margin:0}};var ie=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,index:o.index,data:o.data,layout:o.layout}}))(te),ae=n(67472),ce=n(24907);function se(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var le=function(e){(0,u.Z)(n,e);var t=se(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"onLoad",(function(){r.setState({loading:!1})})),r.state={loading:!0},r}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.state.loading,t=this.props,n=t._id,r=t.query,o=r.isEditor,i=r.isMobile,a=t.mode,c=t.embed,s=c.height,l=c.mbHeight,d=c.code,u=c.url,p=t.isCenter,f=t.layout;return(0,w.jsx)(v.Z,{sectionId:n,children:(0,w.jsx)(g.Z,{sectionId:n,isEditor:o,children:(0,w.jsx)(x.Z,{sectionId:n,children:d.length>0&&(0,w.jsxs)("div",{className:(0,m.iv)(de(f,e),{minHeight:"".concat(s,"px"),"@media(max-width: 480px)":{minHeight:"".concat(l,"px")}}),children:["script"===a&&(0,w.jsx)(ce.Z,{data:d,center:p,onLoad:this.onLoad,customStyle:ue(e,{height:s,mbHeight:l}),minHeight:i?l:s}),"iframe"===a&&(0,w.jsx)(ae.Z,{scrolling:"yes",url:u,onLoad:this.onLoad,customStyle:ue(e,{height:s,mbHeight:l})})]})})})})}}]),n}(i.Component),de=function(e,t){return{width:"100%",position:"relative",margin:"full"!==e&&"1.5rem 0",background:t?G.I:"transparent","@media(max-width: 480px)":{WebkitOverflowScrolling:"touch",overflow:"scroll"}}},ue=function(e,t){var n=t.height,r=t.mbHeight;return{transition:"opacity .5s linear",opacity:e&&0,height:"".concat(n,"px"),overflow:"auto",display:"block","@media(max-width: 480px)":{height:"".concat(r,"px")}}};var pe=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,mode:o.mode,embed:o.embed,layout:o.layout,isCenter:o.isCenter}}))(le),fe=n(27812),he=n(17563),me=n(44012),ve=n(74806),ge=n(69983),xe=n.n(ge),ye=n(38529),be=n(98359),we=n(36796),je=n(8239),Oe=n(39465),Se=n(36966);function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ze(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ke={position:"relative",":before":{content:" ",display:"table"},":after":{content:" ",display:"table"}},Ce=function(e){return{position:"relative",zIndex:2,":before":Pe(Pe({content:" "},(0,Se.ak)(e)),{},{zIndex:-1})}},Ie=function(e){return{width:"100%",height:"100%",position:"relative","& .react-parallax-background-children":{height:"100%",transform:e?"":"translate3d(-50%, 0px, 0px) !important"},"& .react-parallax-content":{width:"inherit",height:"inherit"}}},De={width:"100%",height:"100%",position:"absolute",top:0,zIndex:1,overflow:"hidden"},Re={width:"100vw"};var Fe=(0,c.$j)((function(e,t){var n=t.sectionId,r=e.sections.find((function(e){return e._id===n}))||{},o=r.bgType,i=r.bgColor,a=r.bgGradientColor,c=void 0===a?{}:a,s=r.fitScreen,l=r.coverMask,d=r.bgCoverUrl,u=r.bgMobileUrl,p=r.bgVideoUrl,f=r.bgLottieUrl,h=r.bgMobileLottieUrl,m=r.bgHtmlUrl,v=r.textColor;return{type:o,color:i,gradientColor:"linear-gradient(".concat(c.deg,"deg, ").concat(c.start,", ").concat(c.end,")"),fitScreen:s,coverMask:l,bgImageUrl:d,bgImageMobileUrl:u,bgVideoUrl:p,bgLottieUrl:f,bgMobileLottieUrl:h,bgHtmlUrl:m,textColor:v,isParallax:("cover"===o||"video"===o)&&s}}))((function(e){var t=e.type,n=e.children,r=e.color,o=e.gradientColor,a=e.fitScreen,c=e.coverMask,s=e.isLazyRender,l=e.isParallax,d=e.bgImageUrl,u=e.bgImageMobileUrl,p=e.bgVideoUrl,f=e.bgLottieUrl,h=e.bgMobileLottieUrl,v=e.bgHtmlUrl,g=!1;"cover"===t&&(d||u)?g=(0,w.jsx)(be.Z,{imgUrl:d,imgMobileUrl:u,isLazyRender:s}):"video"===t&&p?g=(0,w.jsx)(we.Z,{isLazyRender:s,videoUrl:p,style:Re}):"gradient"===t?g=(0,w.jsx)("div",{className:(0,m.iv)(!s&&{background:o,width:"100%",height:"100%"})}):"lottie"===t&&(f||h)?g=(0,w.jsx)(je.Z,{lottieUrl:f,lottieMobileUrl:h}):"html"===t&&v&&(g=(0,w.jsx)(Oe.Z,{htmlUrl:v}));var x=(0,w.jsx)("div",{className:(0,m.iv)(Ce(c)),children:n}),y=(0,w.jsx)("div",{className:(0,m.iv)({minWidth:"100vw",height:"inherit"}),children:g});return(0,w.jsx)("div",{className:(0,m.iv)(ke,!s&&{backgroundColor:r}),children:l?(0,w.jsxs)(ye.Parallax,{className:"".concat((0,m.iv)(Ie(a))),strength:200,children:[(0,w.jsx)(ye.Background,{children:y}),x]}):(0,w.jsxs)(i.Fragment,{children:[(0,w.jsx)("div",{className:(0,m.iv)(De),children:y}),x]})})})),Be=n(82492),Ne=n.n(Be),Ee=n(3573),ze=n(69734),Te=n(47472);function He(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?He(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):He(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e){var t=e.data,n=t.imgUrl,r=t.title,o=t.titleStyle,i=t.description,a=t.descriptionStyle,c=t.price,s=t.priceStyle,l=t.discountPrice,d=t.discountPriceStyle,u=t.button,p=t.buttonStyle,f=t.srcUrl,h=t.cardBackgroundColor,m=void 0===h?"":h,v=e.isLazyRender,g=e.dataFetchingMode,x=e.templateCustomStyle,y=e.isSafari,b=e.openInNewTab?"_blank":"_self";return(0,w.jsx)(Ee.Z,{dataFetchingMode:g,templateCustomStyle:x,cardBackgroundColor:m,Image:(0,w.jsx)(D.Z,{href:f,target:b,children:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:v})}),Title:(0,w.jsx)(ze.Z,{lines:2,value:r,styles:[_e,o]}),Description:(0,w.jsx)(ze.Z,{lines:2,value:i,styles:[Ae,a],maxLength:y&&100}),DiscountPrice:(0,w.jsx)(ze.Z,{lines:1,value:l,styles:[We,d]}),Price:(0,w.jsx)(ze.Z,{lines:1,value:c,styles:[Ye,s]}),Button:(0,w.jsx)(D.Z,{href:f,target:b,children:(0,w.jsx)(ze.Z,{value:u,href:f,elementType:"button",styles:[Ve,p,Boolean(f)&&{cursor:"pointer"}]})})})}var Le={border:"1px solid transparent",overflow:"hidden"},_e=Me(Me({},Le),{},{maxHeight:"52px",fontSize:"20px",lineHeight:"1.3",marginBottom:"5px"}),Ae=Me(Me({},Le),{},{maxHeight:"44px",fontSize:"14px",lineHeight:"1.6",marginBottom:"10px"}),We=Me(Me({},Le),{},{wordBreak:"break-all",fontSize:"24px",lineHeight:"1.2",height:"29px",marginBottom:"5px"}
1),Ye=Me(Me({},Le),{},{wordBreak:"break-all",fontSize:"13px",lineHeight:"1.3",textDecoration:"line-through",marginBottom:"5px",height:"18px"}),Ve={display:"inline-block",width:"100%",boxSizing:"border-box",fontSize:"16px",height:"36px",padding:"8px 10px",lineHeight:1,letterSpacing:"0",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",border:"none",":focus":{outline:"none"}},qe=n(11748);function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e){var t=e.data,n=t.imgUrl,r=t.title,o=t.titleStyle,i=t.price,a=t.priceStyle,c=t.discountPrice,s=t.discountPriceStyle,l=t.button,d=t.buttonStyle,u=t.srcUrl,p=t.cardBackgroundColor,f=void 0===p?"":p,h=e.isLazyRender,m=e.dataFetchingMode,v=e.templateCustomStyle,g=e.openInNewTab?"_blank":"_self";return(0,w.jsx)(qe.Z,{dataFetchingMode:m,templateCustomStyle:v,cardBackgroundColor:f,Image:(0,w.jsx)(D.Z,{href:u,target:g,children:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:h})}),Title:(0,w.jsx)(ze.Z,{lines:2,value:r,styles:[Qe,o]}),DiscountPrice:(0,w.jsx)(ze.Z,{lines:1,value:c,styles:[Xe,s]}),Price:(0,w.jsx)(ze.Z,{lines:1,value:i,styles:[et,a]}),Button:(0,w.jsx)(D.Z,{href:u,target:g,children:(0,w.jsx)(ze.Z,{value:l,href:u,elementType:"button",styles:[tt,d,Boolean(u)&&{cursor:"pointer"}]})})})}var Je={border:"1px solid transparent",marginBottom:"5px",overflow:"hidden"},Qe=Ge(Ge({},Je),{},{maxHeight:"52px",fontSize:"20px",lineHeight:"1.3"}),Xe=Ge(Ge({},Je),{},{wordBreak:"break-all",fontSize:"24px",lineHeight:"1.1",height:"27px"}),et=Ge(Ge({},Je),{},{wordBreak:"break-all",fontSize:"13px",lineHeight:"1.2",textDecoration:"line-through",height:"16px"}),tt={maxWidth:"100%",float:"right",height:"33px",boxSizing:"border-box",lineHeight:1.2,padding:"8px 10px",fontSize:"14px",letterSpacing:"0",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",border:"none",":focus":{outline:"none"}},nt=n(47099);function rt(e){var t=e.data,n=t.imgUrl,r=t.title,o=t.titleStyle,i=t.srcUrl,a=t.cardBackgroundColor,c=void 0===a?"":a,s=e.isLazyRender,l=e.dataFetchingMode,d=e.templateCustomStyle,u=e.openInNewTab?"_blank":"_self";return(0,w.jsx)(D.Z,{href:i,target:u,children:(0,w.jsx)(nt.Z,{dataFetchingMode:l,templateCustomStyle:d,cardBackgroundColor:c,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:s}),Title:(0,w.jsx)(ze.Z,{lines:3,value:r,styles:[ot,o]})})})}var ot={fontSize:"20px",lineHeight:"1.3",border:"1px solid transparent",width:"100%",maxHeight:"80px"},it=n(87711);function at(e){var t=e.data,n=t.imgUrl,r=t.title,o=t.titleStyle,i=t.srcUrl,a=t.cardBackgroundColor,c=void 0===a?"":a,s=e.isLazyRender,l=e.dataFetchingMode,d=e.templateCustomStyle,u=e.openInNewTab?"_blank":"_self";return(0,w.jsx)(D.Z,{href:i,target:u,children:(0,w.jsx)(it.Z,{dataFetchingMode:l,templateCustomStyle:d,cardBackgroundColor:c,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:s}),Title:(0,w.jsx)(ze.Z,{lines:3,value:r,styles:[ct,o]})})})}var ct={fontSize:"20px",lineHeight:"1.3",border:"1px solid transparent",width:"100%",flex:"0 0 auto"},st=n(74370);function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e){var t=e.data,n=t.imgUrl,r=t.title,o=t.titleStyle,i=t.subtitle,a=t.subtitleStyle,c=t.description,s=t.descriptionStyle,l=t.button,d=t.buttonStyle,u=t.srcUrl,p=t.cardBackgroun
1dColor,f=void 0===p?"":p,h=e.isLazyRender,m=e.dataFetchingMode,v=e.templateCustomStyle,g=e.openInNewTab?"_blank":"_self";return(0,w.jsx)(D.Z,{href:u,target:g,children:(0,w.jsx)(st.Z,{dataFetchingMode:m,templateCustomStyle:v,cardBackgroundColor:f,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:h}),Subtitle:(0,w.jsx)(ze.Z,{lines:1,value:i,styles:[ht,a]}),Title:(0,w.jsx)(ze.Z,{lines:3,value:r,styles:[ft,o]}),Description:(0,w.jsx)(ze.Z,{lines:6,value:c,styles:[mt,s]}),Button:(0,w.jsx)(ze.Z,{value:l,elementType:"button",styles:[vt,d,Boolean(u)&&{cursor:"pointer"}]})})})}var pt={border:"1px solid transparent",boxSizing:"border-box"},ft=dt(dt({},pt),{},{maxHeight:"80px",fontSize:"20px",lineHeight:"1.3",marginBottom:"10px"}),ht=dt(dt({},pt),{},{height:"20px",fontSize:"16px",lineHeight:1.1,marginBottom:"5px"}),mt=dt(dt({},pt),{},{maxHeight:"130px",fontSize:"14px",lineHeight:"1.5",marginBottom:"10px"}),vt={maxWidth:"100%",display:"inline-block",boxSizing:"border-box",float:"left",fontSize:"14px",height:"33px",padding:"8px 10px",lineHeight:1.2,letterSpacing:"0",transition:"letter-spacing 1s",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",border:"none",":focus":{outline:"none"}},gt=n(30016);function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e){var t=e.data,n=t.imgUrl,r=t.label,o=t.labelStyle,i=t.title,a=t.titleStyle,c=t.description,s=t.descriptionStyle,l=t.author,d=t.authorStyle,u=t.button,p=t.buttonStyle,f=t.srcUrl,h=t.cardBackgroundColor,v=void 0===h?"":h,g=e.isLazyRender,x=e.dataFetchingMode,y=e.templateCustomStyle,b=void 0===y?{}:y,j=e.isSafari,O=e.openInNewTab?"_blank":"_self",S=o.backgroundColor,Z=b.buttonMaxWidth,P=void 0!==Z&&Z;return(0,w.jsx)(gt.Z,{dataFetchingMode:x,templateCustomStyle:b,cardBackgroundColor:v,Label:(0,w.jsx)("div",{className:(0,m.iv)(jt,!g&&r&&{backgroundColor:S}),children:(0,w.jsx)(ze.Z,{lines:2,value:r,styles:[Ot,o]})}),Image:(0,w.jsx)(D.Z,{href:f,target:O,children:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:g})}),Title:(0,w.jsx)(ze.Z,{lines:2,value:i,styles:[St,a]}),Description:(0,w.jsx)(ze.Z,{lines:2,value:c,styles:[Zt,s],maxLength:j&&100}),Author:(0,w.jsx)(ze.Z,{lines:1,value:l,styles:[kt,d]}),Button:(0,w.jsx)(D.Z,{href:f,target:O,children:(0,w.jsx)(ze.Z,{value:u,styles:[Pt,p,!!P&&{maxWidth:P},Boolean(f)&&{cursor:"pointer"}],elementType:"button"})})})}var wt={border:"1px solid transparent"},jt={zIndex:2,position:"absolute",top:0,left:0,padding:"5px 10px",borderRadius:"15px 0"},Ot=yt(yt({},wt),{},{margin:0,maxWidth:"56px",maxHeight:"43px",fontSize:"14px",lineHeight:1.4,overflow:"hidden"}),St=yt(yt({},wt),{},{marginBottom:"5px",maxHeight:"52px",fontSize:"20px",lineHeight:"1.3"}),Zt=yt(yt({},wt),{},{maxHeight:"44px",fontSize:"14px",lineHeight:"1.6",marginBottom:"10px"}),Pt={float:"right",maxWidth:"40%",height:"33px",boxSizing:"border-box",fontSize:"14px",padding:"8px 10px",lineHeight:1.2,letterSpacing:"0",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",border:"none",borderRadius:"12px",":focus":{outline:"none"}},kt={margin:"9px 5px 0 0",float:"left",maxWidth:"calc(60% - 5px)",height:"18px",boxSizing:"border-box",lineHeight:1.2,fontSize:"14px",border:"1px solid transparent"},Ct=n(84618);function It(e){var t=e.data,n=t.imgUrl,r=t.title,o=t.titleStyle,i=t.srcUrl,a=t.cardBackgroundColor,c=void 0===a?"":a,s=e.isLazyRender,l=e.dataFetchingMode,d=e.templateCustomStyle,u=e.openInNewTab?"_blank":"_self";return(0,w.jsx)(D.Z,{href:i,target:u,children:(0,w.jsx)(Ct.Z,{dataFetchingMode:l,templateCustomStyle:d,cardBackgroundColor:c,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:s}),Title:(0,w.jsx)(ze.Z,{lines:3,value:r,styles:[Dt,o]})})})}var Dt={fontSize:"18px",lineHeight:"1.3",width:"100%",maxHeight:"70px"},Rt=n(40923);function Ft(e){var t=e.data,n=t.imgUrl,r=t.subtitle,o=t.subtitleStyle,i=t.title,a=t.titleStyle,c=t.description,s=t.descriptionStyle,l=t.button,d=t.buttonStyle,u=t.srcUrl,p=t.cardBackgroun
1dColor,f=void 0===p?"":p,h=e.isLazyRender,m=e.dataFetchingMode,v=e.templateCustomStyle,g=e.openInNewTab,x=e.isActive,y=g?"_blank":"_self";return(0,w.jsx)(D.Z,{href:u,target:y,children:(0,w.jsx)(Rt.Z,{dataFetchingMode:m,templateCustomStyle:v,cardBackgroundColor:f,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:h}),Subtitle:(0,w.jsx)(ze.Z,{lines:1,value:r,styles:[Bt,o]}),Title:(0,w.jsx)(ze.Z,{lines:2,value:i,styles:[Nt,a]}),Description:(0,w.jsx)(ze.Z,{lines:3,value:c,styles:[Et,s]}),Button:(0,w.jsx)(ze.Z,{value:l,elementType:"button",styles:[zt,d]}),isActive:x})})}var Bt={color:G.R,fontSize:"14px",fontWeight:"500",margin:0,marginBottom:"3px",lineHeight:"1.2"},Nt={color:G.E,fontSize:"20px",fontWeight:"500",margin:0,marginTop:"3px",marginBottom:"5px",maxHeight:"52px",lineHeight:"1.3"},Et={color:G.H,fontSize:"13px",margin:0,marginTop:"5px",marginBottom:"10px",maxHeight:"58px",lineHeight:"1.5",overflow:"hidden"},zt={display:"flex",alignItems:"center",justifyContent:"center",width:"100%",padding:"10px 14px",backgroundColor:G.A,color:G.E,border:"none",borderRadius:"4px",fontSize:"14px",fontWeight:"400",cursor:"pointer",transition:"background-color 0.2s",textAlign:"center",":hover":{backgroundColor:G.A}},Tt=n(97308);function Ht(e){var t=e.data,n=t.imgUrl,r=t.subtitle,o=t.subtitleStyle,i=t.title,a=t.titleStyle,c=t.description,s=t.descriptionStyle,l=t.button,d=t.buttonStyle,u=t.srcUrl,p=t.cardBackgroundColor,f=void 0===p?"":p,h=e.isLazyRender,m=e.dataFetchingMode,v=e.templateCustomStyle,g=e.openInNewTab,x=e.isActive,y=g?"_blank":"_self";return(0,w.jsx)(D.Z,{href:u,target:y,children:(0,w.jsx)(Tt.Z,{dataFetchingMode:m,templateCustomStyle:v,cardBackgroundColor:f,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:h,scaleWhenHover:!1}),Subtitle:(0,w.jsx)(ze.Z,{lines:1,value:r,styles:[Mt,o]}),Title:(0,w.jsx)(ze.Z,{lines:2,value:i,styles:[Ut,a]}),Description:(0,w.jsx)(ze.Z,{lines:3,value:c,styles:[Lt,s]}),Button:(0,w.jsx)(ze.Z,{value:l,elementType:"button",styles:[_t,d]}),isActive:x})})}var Mt={color:G.F,fontSize:"14px",margin:0,marginTop:"5px",marginBottom:"5px",lineHeight:"1.2"},Ut={color:G.E,fontSize:"20px",margin:0,marginTop:"5px",marginBottom:"5px",maxHeight:"52px",lineHeight:"1.3"},Lt={color:G.H,fontSize:"13px",margin:0,marginTop:"5px",marginBottom:"8px",maxHeight:"58px",lineHeight:"1.5"},_t={display:"inline-block",alignItems:"center",justifyContent:"center",background:"transparent",border:"none",borderRadius:"4px",color:G.E,padding:"8px 16px",margin:0,marginTop:"8px",fontSize:"13px",textTransform:"uppercase",letterSpacing:"1px",cursor:"pointer",transition:"all 0.2s",":hover":{backgroundColor:G.E,color:G.G}},At=n(80840);function Wt(e){var t=e.data,n=t.imgUrl,r=t.subtitle,o=t.subtitleStyle,i=t.title,a=t.titleStyle,c=t.description,s=t.descriptionStyle,l=t.button,d=t.buttonStyle,u=t.srcUrl,p=t.cardBackgroundColor,f=void 0===p?"":p,h=e.isLazyRender,m=e.dataFetchingMode,v=e.templateCustomStyle,g=e.openInNewTab,x=e.isActive,y=g?"_blank":"_self";return(0,w.jsx)(D.Z,{href:u,target:y,children:(0,w.jsx)(At.Z,{dataFetchingMode:m,templateCustomStyle:v,cardBackgroundColor:f,Image:(0,w.jsx)(Te.Z,{imgUrl:n,isLazyRender:h}),Subtitle:(0,w.jsx)(ze.Z,{lines:1,value:r,styles:[Yt,o]}),Title:(0,w.jsx)(ze.Z,{lines:2,value:i,styles:[Vt,a]}),Description:(0,w.jsx)(ze.Z,{lines:3,value:c,styles:[qt,s]}),Button:(0,w.jsx)(ze.Z,{value:l,elementType:"button",styles:[Kt,d]}),isActive:x})})}var Yt={color:G.N,fontSize:"14px",margin:0,marginBottom:"3px",lineHeight:"1.2"},Vt={color:G.P,fontSize:"20px",margin:0,marginTop:"3px",marginBottom:"5px",maxHeight:"52px",lineHeight:"1.3"},qt={color:G.N,fontSize:"13px",margin:0,marginTop:"5px",marginBottom:"10px",maxHeight:"58px",lineHeight:"1.5"},Kt={display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",backgroundColor:G.G,color:G.E,padding:"10px 14px",border:"none",borderRadius:"4px",fontSize:"14px",fontWeight:"400",cursor:"pointer",transition:"background-color 0.2s",":hover":{backgroundColor:G.P},":after":{content:'"\u2192"',marginLeft:"8px"}},Gt=n(30479),$t=n(58126);function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Jt(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xt(e){var t=e.batchData,n=void 0===t?null:t,o=e.cardConfig,i=e.cardsPerRow,a=e.datas,c=e.forceUpdateKey,s=void 0===c?0:c,l=e.isDataFetching,d=e.isLazyRender,u=e.isMobileDevice,p=e.layout,f=e.layoutConfig,h=e.templateId,m=e.isSafari,v=e.openInNewTab,g=o.defaultStyle,x=o.templateCustomStyles,y=void 0===x?{}:x,b=a.map((function(e){return Ne()({},g,e,n)})),j="slider"===p,O=j?Gt.Z:$t.Z,S=j?{cardsPerRow:i,config:f,datas:b,isLazyRender:d,isMobileDevice:u,key:s}:{config:f,datas:b},Z=r["Card".concat(h)]||Ue,P=y[h];return(0,w.jsx)(O,Qt(Qt({},S),{},{children:function(e,t){return(0,w.jsx)(Z,{data:e,dataFetchingMode:l,isLazyRender:d,templateCustomStyle:P,isSafari:m,openInNewTab:v,isActive:t})}}))}var en=n(23279),tn=n.n(en),nn=n(51138),rn=n(23653);function on(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var an=function(e){(0,u.Z)(n,e);var t=on(n);function n(e){var r;(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"setLayoutConfig",(function(){var e=r.props,t=e.templateId,n=e.widthToViewportRatio,o=e.layout,i=e.mobileDisplay,a=e.cardSize,c=(0,nn.Z)("client",t,window.innerWidth>=1280?n:1,i,o,a);r.setState((function(e){var t=e.cardsPerRow,n={layoutConfig:c};if("slider"===o){var r=c.slider,i=(0,rn.Z)(r,window.innerWidth);i!==t&&(n.cardsPerRow=i)}return n}))})),(0,h.Z)((0,d.Z)(r),"setCardsPerRow",(function(){"slider"===r.props.layout&&r.setState((function(e){var t=e.cardsPerRow,n=e.layoutConfig.slider,r=(0,rn.Z)(n,window.innerWidth);return r!==t?{cardsPerRow:r}:null}))})),(0,h.Z)((0,d.Z)(r),"setForceUpdateKey",(function(){return r.setState((function(e){return{forceUpdateKey:e.forceUpdateKey+1}}))})),(0,h.Z)((0,d.Z)(r),"handleWindowResize",(function(){var e=window.innerWidth;if(e!==r.viewportWidth){var t=r.state.isViewportAbove1280px;if(t&&e<1280||!t&&e>=1280){var n=r.props,o=n.templateId,i=n.widthToViewportRatio,a=n.layout,c=n.mobileDisplay,s=n.cardSize,l=(0,nn.Z)("client",o,e>=1280?i:1,c,a,s),d=l.slider;r.setState((function(t){var n=t.forceUpdateKey,r={isViewportAbove1280px:e>=1280,layoutConfig:l,forceUpdateKey:n+1};return"slider"===a&&(r.cardsPerRow=(0,rn.Z)(d,e)),r}))}else r.setCardsPerRow()}r.viewportWidth=e})),(0,h.Z)((0,d.Z)(r),"debounceWindowResize",tn()(r.handleWindowResize,300));var o=e.templateId,i=e.widthToViewportRatio,a=e.layout,c=e.mobileDisplay,l=e.cardSize;r.viewportWidth=0;var u=(0,nn.Z)("client",o,i,c,a,l);return r.state={layoutConfig:u,forceUpdateKey:0,isViewportAbove1280px:!1,cardsPerRow:4,isSafari:!1},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){var e=window.navigator.userAgent.toLowerCase();this.viewportWidth=window.innerWidth,this.setState({isViewportAbove1280px:window.innerWidth>=1280,isSafari:-1!==e.indexOf("safari")&&-1===e.indexOf("chrome")}),this.setLayoutConfig(),this.setCardsPerRow(),this.setForceUpdateKey(),window.addEventListener("resize",this.debounceWindowResize,{passive:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.layout,r=t.templateId,o=t.widthToViewportRatio,i=t.mobileDisplay,a=t.cardSize,c=e.layout,s=e.templateId,l=e.widthToViewportRatio,d=e.mobileDisplay,u=e.cardSize;n===c&&r===s&&o===l&&i===d&&a===u||(this.setLayoutConfig(),n!==c&&this.setForceUpdateKey())}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.debounceWindowResize,{passive:!0})}},{key:"render",value:function(){var e=this.props.children,t=this.state;return e({layoutConfig:t.layoutConfig,forceUpdateKey:t.forceUpdateKey,cardsPerRow:t.cardsPerRow,isSafari:t.isSafari})}}]),n}(i.Component);(0,h.Z)(an,"defaultProps",{widthToViewportRatio:1});var cn=n(78438),sn=n(66671),ln=n(2206),dn=n(59177);function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?un(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fn(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var hn=function(e){(0,u.Z)(n,e);var t=fn(n);function n(e){var r;(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"onLoadPages",(function(e){var t=r.props,n=t.pageId,o=t.boxSorting;(0,cn.Vj)(e).then((function(e){var t=jn(e.data.filter((function(e){return e.pageId!==n})));r.setState({next:e.next||"",pages:"random"===o?xe()(t):t,loading:!1})}))})),(0,h.Z)((0,d.Z)(r),"onLoadMore",(function(){var e=r.props,t=e.pageId,n=e.boxSorting,o=r.state,i=o.next,a=o.pages;(0,cn.Vj)(i).then((function(e){var o=jn(e.data.filter((function(e){return e.pageId!==t}))),i=[].concat((0,fe.Z)(a),(0,fe.Z)(o));r.setState({next:e.next||"",pages:"random"===n?xe()(i):i})}))})),(0,h.Z)((0,d.Z)(r),"onClickLabel",(function(e){e!==r.state.labelId&&r.setState({labelId:e,next:"",loading:!0})})),(0,h.Z)((0,d.Z)(r),"getAPIPath",(function(e,t){var n=t,o=r.props.data;return 0===t&&o.length>1&&(n=o.filter((function(e){return e.id!==t})).map((function(e){return e.id})).join()),"/sponsors/".concat(e,"/labels/").concat(n,"/meta/1?").concat(he.stringify(Object.assign({_limit:"full"===r.props.layout?15:12})))}));var o=e.data,i=e.boxSorting,a=o.length>0?o[0].id:-1,c=[{_id:1},{_id:2},{_id:3}];return r.state={labelId:a,labels:o,pages:"random"===i?xe()(c):c,next:"",loading:!0},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.sponsorId,n=e.isLazyRender,r=e.data,o=this.state.labelId;if(!n&&-1!==o&&0!==r.length){var i=this.getAPIPath(t,o);this.onLoadPages(i)}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.sponsorId,o=n.isLazyRender,i=n.data,a=n.boxSorting,c=e.isLazyRender,s=e.boxSorting,l=this.state,d=l.labelId,u=l.pages;if(0!==i.length&&(c&&!o||!o&&d!==t.labelId)){var p=this.getAPIPath(r,d);this.onLoadPages(p)}a!==s&&u.length>0&&this.setState({pages:"random"===a?xe()((0,fe.Z)(u)):u})}},{key:"render",value:function(){var e=this,t=this.state,n=t.labelId,r=t.labels,o=t.pages,i=t.next,a=t.loading,c=this.props,s=c._id,l=c.customData,d=c.intl,u=c.forwardRef,p=c.isLazyRender,f=c.layout,h=c.templateId,g=c.query.isMobile,y=c.cardDisplayMode,b=void 0===y?"rwd":y,j=c.openInNewTab,O=c.mobileDisplay,S=c.cardSize,Z=sn.Z[f],P=(0,ln.Z)(h),k="slider"===b?"slider":"rwd";return(0,w.jsx)(v.Z,{sectionId:s,forwardRef:u,children:(0,w.jsx)(Fe,{sectionId:s,isLazyRender:p,children:(0,w.jsx)(x.Z,{sectionId:s,children:(0,w.jsxs)("div",{className:(0,m.iv)(vn),children:[r.length>1&&(0,w.jsx)("div",{children:r.map((function(t){return(0,w.jsx)("div",{className:(0,m.iv)(gn(t.id===n)),onClick:function(){return e.onClickLabel(t.id)},children:0===t.id&&r.length>1?d.formatMessage({id:"tagfeed.label_all",defaultMessage:"All"}):t.text},t.id)}))}),r.length>0&&(0,w.jsx)(an,{isLazyRender:p,layout:k,templateId:h,widthToViewportRatio:Z,mobileDisplay:O,cardSize:S,children:function(e){var t=e.layoutConfig,n=e.forceUpdateKey,r=e.cardsPerRow,i=e.isSafari;return(0,w.jsx)(Xt,{batchData:l,cardConfig:pn(pn({},P),{},{templateCustomStyles:wn}),cardsPerRow:r,datas:o,forceUpdateKey:n,isDataFetching:a,isLazyRender:p,isMobileDevice:g,layout:k,layoutConfig:t,templateId:h,isSafari:i,openInNewTab:j})}}),""!==i&&(0,w.jsx)("div",{className:"pure-u-xl-17-24 pure-u-1 marginAuto ".concat((0,m.iv)(bn,{marginBottom:"1.5rem"})),children:(0,w.jsx)("div",{className:"pure-u-1 pure-u-sm-1-2 pure-u-md-1-3 pure-u-lg-1-4 pure-u-xl-1-5",children:(0,w.jsx)("div",{className:(0,m.iv)(xn,yn,bn),onClick:this.onLoadMore,children:(0,w.jsx)(me.Z,{id:"montage.more",defaultMessage:"More..."})})})})]})})})})}}]),n}(i.Component),mn=(0,ve.ZP)(hn),vn={padding:"1rem 0","> div":{display:"flex",flexWrap:"wrap",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:".5rem 0",margin:"0 1rem"},"> .marginAuto":{margin:"0 auto"}},gn=function(e){return{background:e?G.F:G.E,margin:".25rem",cursor:"pointer",fontSize:"14px",border:"1px solid #E3E3E3",borderRadius:"2px",padding:".5rem 1.5rem"}},xn={textAlign:"center",cursor:"pointer",marginBottom:"1.5rem"}
1,yn={margin:".5rem",padding:".8rem",background:G.E,boxShadow:dn.xF,borderRadius:"2px",":hover":{background:G.F,boxShadow:dn.j}},bn={display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",justifyContent:"center"},wn={1:{textWrapperMinHeight:"110px"},2:{textWrapperMinHeight:"64px"},6:{buttonMaxWidth:"100%"}};function jn(e){return e.map((function(e){var t=e.title,n=e.description,r=e.pageId;return{title:t,description:n,_id:r,imgUrl:e.image,srcUrl:"".concat(window.location.origin,"/").concat(r)}}))}var On=(0,c.$j)((function(e,t){var n=e.sections,r=e.page,o=r.pageId,i=r.sponsor,a=(i=void 0===i?{}:i).id,c=t.query,s=t.sectionId,l=n.find((function(e){return e._id===s}))||{},d=l._id,u=l.customData,p=l.layout,f=l.data,h=l.cardDisplayMode,m=l.boxSorting,v=l.openInNewTab,g=l.mobileDisplay,x=l.cardSize,y=l.templateId||7;return y=c.isMobile&&7===y?4:y,{_id:d,customData:u,layout:p,data:f,pageId:Number(o),sponsorId:a,templateId:y,cardDisplayMode:h,boxSorting:m,openInNewTab:v,mobileDisplay:g,cardSize:x}}))(mn),Sn=n(1549),Zn=n(43344);function Pn(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var In=function(e){var t=e.imgUrl,n=e.srcUrl,r=e.srcTarget,o=e.config;return(0,w.jsx)("div",{className:(0,m.iv)(Rn),children:(0,w.jsx)("a",Cn(Cn({className:(0,m.iv)({cursor:""===n?"default":"pointer",display:"flex",width:"100%",height:"100%"})},(0,Zn.Z)(r,n)),{},{rel:"noopener".concat("_self"===r?"":" noreferrer"),children:t&&(0,w.jsx)("div",{className:(0,m.iv)(Fn(t,o.env))})}))})},Dn=function(e){(0,u.Z)(n,e);var t=Pn(n);function n(e){var r;return(0,s.Z)(this,n),(r=t.call(this,e)).containerRef=i.createRef(),r.iconItemRefs=[],r}return(0,l.Z)(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.forwardRef,o=t.customStyle,i=t.config,a=void 0===i?{}:i;return n.length>0&&(0,w.jsx)("div",{ref:function(t){e.containerRef.current=t,r&&r(t)},className:(0,m.iv)(o),children:n.map((function(e,t){var n=e.imgUrl,r=e.srcUrl,o=e.srcTarget;return(0,w.jsx)(In,{imgUrl:n,srcUrl:r,srcTarget:o,config:a},t)}))})}}]),n}(i.PureComponent),Rn={width:"100%",height:"100%",border:"none",margin:"0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},Fn=function(e,t){return{width:"100%",height:"100%",maxWidth:"248px",maxHeight:"80px",background:"url(".concat(e,") no-repeat center"),backgroundSize:"contain","@media(max-width: 480px)":{background:"url(".concat((0,b.gP)({url:e,size:600,env:t}),") no-repeat center"),backgroundSize:"contain"}}},Bn=n(73935),Nn=n(53802),En=n(96310);function zn(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var Tn=function(e){(0,u.Z)(n,e);var t=zn(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"handleClickOutside",(function(e){var t=e.target.closest(".sub-menu")||e.target.closest('[class*="subMenu"]'),n=Object.values(r.triggerRefs).some((function(t){return t&&t.contains(e.target)}));t||n||r.closeCurrentDropdown()})),(0,h.Z)((0,d.Z)(r),"handleResize",(function(){null!==r.currentOpenIndex&&r.closeCurrentDropdown()})),(0,h.Z)((0,d.Z)(r),"closeCurrentDropdown",(function(){r.currentDropdownElement&&(r.currentDropdownElement.style.display="none",r.currentDropdownElement=null,r.currentOpenIndex=null)})),(0,h.Z)((0,d.Z)(r),"handleMouseEnter",(function(e){if(r.closeTimeout&&(clearTimeout(r.closeTimeout),r.closeTimeout=null),r.currentOpenIndex!==e){null!==r.currentOpenIndex&&r.currentOpenIndex!==e&&r.closeCurrentDropdown();var t=r.dropdownRefs[e];t&&(r.setDropdownMaxHeight(e,t),t.style.display="flex",r.currentDropdownElement=t,r.currentOpenIndex=e,setTimeout((function(){r.calculateDropdownPosition(e)}),0))}else r.closeCurrentDropdown()})),(0,h.Z)((0,d.Z)(r),"setDropdownMaxHeight",(function(e,t,n){var o=r.triggerRefs[e];if(o&&t){var i=void 0===n?o.getBoundingClientRect().bottom:n;t.style.maxHeight="".concat((0,En.Z)(i,window.innerHeight),"px")}})),(0,h.Z)((0,d.Z)(r),"handleMouseLeave",(function(){r.closeTimeout=setTimeout((function(){r.closeCurrentDropdown()}),300)})),(0,h.Z)((0,d.Z)(r),"handleDropdownMouseEnter",(function(){r.closeTimeout&&(clearTimeout(r.closeTimeout),r.closeTimeout=null)})),(0,h.Z)((0,d.Z)(r),"handleDropdownMouseLeave",(function(){r.closeCurrentDropdown()})),(0,h.Z)((0,d.Z)(r),"handleScroll",(function(){null!==r.currentOpenIndex&&r.calculateDropdownPosition(r.currentOpenIndex)})),(0,h.Z)((0,d.Z)(r),"calculateDropdownPosition",(function(e){var t=r.triggerRefs[e],n=r.dropdownRefs[e];if(t&&n){var o=t.getBoundingClientRect();n.style.position="fixed",n.style.top="".concat(o.bottom,"px"),n.style.left="".concat(o.left,"px"),n.style.zIndex="9999",r.setDropdownMaxHeight(e,n,o.bottom);var i=r.props.bgColor,a=t.closest("nav");if(i&&n.style.setProperty("background-color",i,"important"),a){var c=window.getComputedStyle(a).color;n.style.setProperty("color",c,"important"),n.querySelectorAll("a").forEach((function(e){e.style.setProperty("color",c)}))}var s=n.offsetWidth,l=window.innerWidth-o.right,d=o.left;l<s&&d>=s?(n.style.left="auto",n.style.right="".concat(window.innerWidth-o.right,"px")):(n.style.left="".concat(o.left,"px"),n.style.right="auto")}}
1)),r.currentOpenIndex=null,r.currentDropdownElement=null,r.triggerRefs={},r.dropdownRefs={},r.closeTimeout=null,r.state={isMounted:!1},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0}),document.addEventListener("mousedown",this.handleClickOutside),window.addEventListener("scroll",this.handleScroll,{passive:!0}),window.addEventListener("resize",this.handleResize,{passive:!0})}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize),this.closeTimeout&&clearTimeout(this.closeTimeout)}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.rightAlign,o=t.vertical,i=t.leftAlign;return o?(0,w.jsx)("div",{className:(0,m.iv)(H.UF,Ln),children:n.map((function(e,t){var n=e.text,r=e.srcUrl,o=e.srcTarget;return(0,w.jsx)("div",{className:(0,m.iv)(H.Kw,Mn),children:(0,w.jsx)(D.Z,{href:r,target:o,style:Un,children:n})},t)}))}):(0,w.jsx)(Nn.HorizontalScroll,{align:r?"right":i?"left":"center",children:n.map((function(t,n){var r=t.text,o=t.srcUrl,i=t.srcTarget,a=t.data,c=void 0===a?[]:a,s=t.menuMode,l=void 0===s?"":s,d=t.froalaContent,u=void 0===d?"":d;return(0,w.jsx)("div",{"data-menu-index":n,className:(0,m.iv)(H.Kw,Hn()),ref:function(t){return e.triggerRefs[n]=t},onMouseEnter:"dropDown"===i?function(){return e.handleMouseEnter(n)}:null,onMouseLeave:"dropDown"===i?e.handleMouseLeave:null,children:"dropDown"===i?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)("div",{className:(0,m.iv)(Un),children:[r,(0,w.jsx)("span",{className:"icon-sort-down ".concat((0,m.iv)(_n))})]}),c.length>0&&e.state.isMounted&&Bn.createPortal((0,w.jsxs)("div",{className:"sub-menu ".concat((0,m.iv)(An)),ref:function(t){return e.dropdownRefs[n]=t},style:{display:"none"},onMouseEnter:e.handleDropdownMouseEnter,onMouseLeave:e.handleDropdownMouseLeave,onWheel:function(e){var t=e.currentTarget,n=t.scrollTop,r=t.scrollHeight,o=t.clientHeight,i=r>o;if(e.stopPropagation(),i){var a=0===n,c=n+o>=r-1,s=e.deltaY<0,l=e.deltaY>0;(a&&s||c&&l)&&e.preventDefault()}},children:[(0,w.jsx)("div",{className:(0,m.iv)(Wn),children:c.map((function(e,t){return(0,w.jsx)(D.Z,{href:e.srcUrl,target:e.srcTarget,style:Yn,children:e.text},t)}))}),"textOnly"!==l&&u&&(0,w.jsx)("div",{className:(0,m.iv)(Vn),children:(0,w.jsx)(y.Z,{content:u,shouldLazyLoad:!1})})]}),document.body)]}):(0,w.jsx)(D.Z,{href:o,target:i,style:Un,children:r})},n)}))})}}]),n}(i.PureComponent),Hn=function(){return{boxSizing:"border-box",display:"inline-block"}},Mn={flexShrink:0,marginBottom:".5rem",position:"relative","& a":{fontSize:"1.25rem"},":after":{position:"absolute",content:" ",bottom:0,width:"0px",left:"50%",height:"1px",backgroundColor:"currentColor",transition:"all .5s ease"},":hover:after":{width:"100%",left:0}},Un={display:"inline-block",letterSpacing:"0.5px",background:"transparent",cursor:"pointer",fontSize:"16px",padding:".5rem ",fontWeight:500,"&:hover":{textDecoration:"underline",textUnderlineOffset:"8px"},"&:active":{textDecoration:"underline",textUnderlineOffset:"8px"}},Ln={flexWrap:"nowrap",justifyContent:"flex-start"},_n={marginLeft:"8px",fontSize:"12px",color:"inherit",transition:"transform 0.2s ease",display:"inline-block",width:"12px",height:"12px",lineHeight:"12px"},An={display:"flex",alignItems:"stretch",position:"fixed",backgroundColor:"white",borderRadius:"16px",zIndex:1e3,minWidth:"90px",width:"max-content",overflowY:"auto",boxShadow:dn.AH,cursor:"pointer"},Wn={display:"flex",flexDirection:"column",alignSelf:"stretch",padding:"8px"},Yn={display:"block",padding:"10px",fontWeight:500,"&:hover":{textDecoration:"underline",textUnderlineOffset:"8px"},"&:active":{textDecoration:"underline",textUnderlineOffset:"8px"}},Vn={color:"initial",minWidth:"120px",maxWidth:"640px",whiteSpace:"normal",wordBreak:"break-word",overflowWrap:"anywhere",alignSelf:"stretch",display:"flex",flexDirection:"column","& > div":{flex:1,display:"flex",flexDirection:"column",minHeight:0,"& > div":{flex:1,minHeight:0}}};function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?qn(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gn(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var $n=function(e){(0,u.Z)(n,e);var t=Gn(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"toogleMenuFix",(function(){var e=window.pageYOffset,t=r.props.animationType,n=r.state.isHeaderFixed,o=(0,d.Z)(r),i=o.menuTopOffsetTop,a=o.menuHeight;e>=("1"===t?i:i+a)&&!1===n?r.setState({isHeaderFixed:!0}):e<i&&!0===n&&r.setState({isHeaderFixed:!1,showFixHeader:!1}),r.slideHeader()})),r.menu=i.createRef(),r.menuHeight=0,r.menuTopOffsetTop=0,r.prevWindowYOffset=0,r.prevIsScrollUp=!1,r.state={isHeaderFixed:!1,showFixHeader:!1},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.setHeaderAnimation(!0)}},{key:"componentWillUnmount",value:function(){this.setHeaderAnimation(!1)}},{key:"setHeaderAnimation",value:function(e){if(this.isHeaderFixable())if(e){var t=this.menu.current;this.menuHeight=t.offsetHeight,this.menuTopOffsetTop=window.pageYOffset+t.getBoundingClientRect().top,window.addEventListener("scroll",this.toogleMenuFix,{passive:!0})}else window.removeEventListener("scroll",this.toogleMenuFix,{passive:!0})}},{key:"isHeaderFixable",value:function(){var e=this.props,t=e.noNavItems,n=e.isEditor,r=e.animationType;return!t&&!n&&"0"!==r}},{key:"slideHeader",value:function(){var e=this.props,t=e.animationType,n=e.scrollDistanceForAnimate,r=void 0===n?10:n,o=this.state.isHeaderFixed;if(("2"===t||"3"===t)&&o){var i=window.pageYOffset;if(Math.abs(this.prevWindowYOffset-i)>r){var a=this.prevWindowYOffset>i;this.prevIsScrollUp!==a&&this.setState({showFixHeader:a}),this.prevWindowYOffset=i,this.prevIsScrollUp=a}}}},{key:"renderBackgroundMask",value:function(){var e=this.props.maskStyle,t=this.state.isHeaderFixed;return e&&t&&(0,w.jsx)("div",{className:(0,m.iv)(e)})}},{key:"render",value:function(){var e=this.props,t=e._id,n=e.Icon,r=e.Nav,o=e.fontBgStyle,i=e.isEditor,a=e.textColor,c=e.renderSettingButton,s=e.animationType,l=this.state,d=l.isHeaderFixed,u=l.showFixHeader,p=this.menuHeight,f=[],h="";d?(h=(0,m.iv)(Xn,{margin:"auto",width:"100%","@media (min-width: 1600px)":{width:"83.3333%"}}),f.push(o),"1"===s&&f.push(Qn(0)),"2"===s?f.push(Qn(p),{transition:"all .4s ease-out"},{transform:"translateY(".concat(u?p:0,"px)")}):"3"===s&&f.push(Qn(p),u?{opacity:1,visibility:"visible",top:0,transition:"opacity .4s ease-out, visibility .4s ease-out"}:{opacity:0,visibility:"hidden",transition:"opacity .4s ease-out, visibility .4s ease-out, top .1s ease-out .4s"})):h="".concat((0,m.iv)(Xn));var y=i?0:44;return(0,w.jsxs)(v.Z,{sectionId:t,wrapperType:"header",children:[i&&c(t),(0,w.jsx)(g.Z,{sectionId:t,isEditor:i,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsxs)("div",{className:(0,m.iv)(tr),children:[n,(0,w.jsxs)("div",Kn(Kn({},d?{id:"zines-fixed-header"}:{}),{},{"data-height":y,ref:this.menu,className:m.iv.apply(void 0,[er,{"& nav":{color:a}}].concat(f)),children:[this.renderBackgroundMask(),(0,w.jsx)("div",{className:h,children:r},String(d))]})),d&&(0,w.jsx)("div",{style:{height:p}})]})})})]})}}]),n}(i.Component);(0,h.Z)($n,"defaultProps",{renderSettingButton:function(){return!1}});var Jn=$n,Qn=function(e){return{position:"fixed",top:"-".concat(e,"px"),left:0,zIndex:190,textAlign:"center"}},Xn={border:"1px dashed transparent"},er={width:"100%","& a":{fontWeight:500}},tr={padding:".5rem 0"},nr=n(84646);function rr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?rr(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var ar=function(e){(0,u.Z)(n,e);var t=ir(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"toogleHeaderSlide",(function(){var e=(0,d.Z)(r),t=e.headerTopOffsetTop,n=e.header.current,o=window.pageYOffset,i=r.state,a=i.isHeaderFixed,c=i.headerHeight,s=n.offsetHeight;s!==c&&r.setState({headerHeight:c}),!a&&o>s+t?r.setState({isHeaderFixed:!0}):a&&o<=t&&r.setState({isHeaderFixed:!1,showFixHeader:!1}),r.slideHeader()})),r.header=i.createRef(),r.prevWindowYOffset=0,r.prevIsScrollUp=!1,r.headerPortal=null,r.headerTopOffsetTop=0,r.state={headerHeight:0,showFixHeader:!1,isHeaderFixed:!1},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){var e=this.header.current;this.headerPortal=document.getElementById("header_portal"),this.prevWindowYOffset=window.pageYOffset,this.headerTopOffsetTop=window.pageYOffset+e.getBoundingClientRect().top,this.setHeaderLayoutInfo(),this.setHeaderAnimation(!0)}},{key:"componentWillUnmount",value:function(){this.setHeaderAnimation(!1)}},{key:"setHeaderLayoutInfo",value:function(){var e=this.header.current;"0"!==this.props.animationType&&e&&this.setState({headerHeight:e.offsetHeight})}},{key:"setHeaderAnimation",value:function(e){var t=this.props,n=t.animationType;t.isEditor||"0"===n||(e?window.addEventListener("scroll",this.toogleHeaderSlide,{passive:!0}):window.removeEventListener("scroll",this.toogleHeaderSlide,{passive:!0}))}},{key:"slideHeader",value:function(){var e=this.props,t=e.animationType,n=e.scrollDistanceForAnimate,r=this.state.isHeaderFixed;if("1"!==t&&r){var o=window.pageYOffset;if(Math.abs(this.prevWindowYOffset-o)>n){var i=this.prevWindowYOffset>o;this.prevIsScrollUp!==i&&this.setState({showFixHeader:i}),this.prevWindowYOffset=o,this.prevIsScrollUp=i}}}},{key:"renderHeader",value:function(){var e,t=this.props,n=t.type,r=t._id,o=t.isEditor,i=t.Icon,a=t.Nav,c=t.TextBlock,s=t.fontBgStyle,l=t.bmBtnColor,d=t.animationType,u=t.showBurgerMenu,p=t.onMenuToogle,f=t.textColor,h=t.render
1SettingButton,y=this.state,b=y.headerHeight,j=y.isHeaderFixed,O=y.showFixHeader,S="Header"===n?210:200,Z=[];if(j)if(Z.push(s,dr,lr(S)),"2"===d){var P={top:-1*b},k={transform:"translateY(".concat(b*(O&&!u?1:-1),"px)")};Z.push(P,k)}else if("3"===d){var C=O&&!u?{opacity:1,visibility:"visible"}:{opacity:0,visibility:"hidden"};Z.push({top:0},C)}else if("1"===d){var I={transform:"translateY(".concat(u?-1*b:0,"px)")};Z.push({top:0},I)}return(0,w.jsxs)(v.Z,{sectionId:r,wrapperType:"header",forwardRef:this.header,customStyle:"".concat(m.iv.apply(void 0,[{zIndex:"Header"===n?60:55}].concat(Z))),children:[o&&h(r),(0,w.jsx)(g.Z,{sectionId:r,isEditor:o,children:(0,w.jsx)(x.Z,{sectionId:r,layout:"full",children:(0,w.jsxs)("div",or(or({},"0"!==d?{id:"zines-fixed-header"}:{}),{},{className:(0,m.iv)(sr),children:[(0,w.jsx)("div",{className:(0,m.iv)(ur),children:i}),(0,w.jsxs)("div",{className:(0,m.iv)(pr,{"& nav":{color:f}}),children:[Boolean(null===c||void 0===c||null===(e=c.props)||void 0===e?void 0:e.content)&&(0,w.jsx)("div",{className:(0,m.iv)(hr),children:c}),a]}),(0,w.jsx)("span",{onClick:function(){return p(!0)},className:"icon-bars ".concat((0,m.iv)(fr,{color:l}))})]}))})})]})}},{key:"render",value:function(){var e=this.state,t=e.headerHeight,n=e.isHeaderFixed;return(0,w.jsxs)(i.Fragment,{children:[n?Bn.createPortal(this.renderHeader(),this.headerPortal):this.renderHeader(),n&&(0,w.jsx)("div",{style:{height:t}})]})}}]),n}(i.Component);(0,h.Z)(ar,"defaultProps",{renderSettingButton:function(){return!1}});var cr=ar,sr={display:"flex",position:"relative",justifyContent:"space-between",alignItems:"center",minHeight:"64px",margin:"0 auto",width:"100%",padding:".5rem 0",boxSizing:"border-box","@media (min-width: 1600px)":{width:"83.3333%"},"@media (max-width: 1280px)":{padding:".5rem 1.5rem"},"@media (max-width: 768px)":{justifyContent:"space-between"}},lr=function(e){return{position:"fixed",left:0,right:0,zIndex:e}},dr={transition:"all .4s ease-out"},ur={zIndex:100},pr={width:"100%",marginLeft:"8px",display:"flex",flexDirection:"column",alignItems:"flex-end","@media (max-width: 1280px)":{width:"700px"},"@media (max-width: 1024px)":{width:"500px"},"@media (max-width: 768px)":{display:"none"},"& a":{fontWeight:500}},fr={display:"none",fontSize:"44px",color:G.P,cursor:"pointer","@media (max-width: 768px)":{display:"inline-block",position:"absolute",top:"50%",right:"1rem",transform:"translateY(-50%)"}},hr=or(or({width:"375px",marginRight:".5rem",height:"48px",overflow:"auto",display:"flex",flexDirection:"column",justifyContent:"center"},nr.K),{},{"& p":{margin:"0 !important",padding:"0 !important"},"& .fr-element":{padding:"0 !important"}}),mr=n(23493),vr=n.n(mr),gr=n(39937),xr=n(60928);function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wr(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var jr=function(e){(0,u.Z)(n,e);var t=wr(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"fadeHeader",(function(){var e=window.pageYOffset,t=r.prevPageYOffset>e,n=t&&e>30,o=t||!t&&e<10;r.setState({shouldBgFadeIn:n,shouldHeaderFadeIn:o}),r.prevPageYOffset=e})),(0,h.Z)((0,d.Z)(r),"handleWindowResize",tn()((function(){return r.setState({windowHeight:window.innerHeight})}),100)),(0,h.Z)((0,d.Z)(r),"handleTouchMove",vr()((function(e){if("boolean"!==typeof e.cancelable||e.cancelable){var t=r.menu.current,n=t.offsetHeight,o=t.scrollHeight,i=t.scrollTop;i<=1?(t.scrollTop=2,e.preventDefault()):i+n>=o-1&&(t.scrollTop=i-2,e.preventDefault())}}),100)),(0,h.Z)((0,d.Z)(r),"handleIEScroll",(function(e){e.preventDefault();var t=e.wheelDelta,n=window.pageYOffset;window.scrollTo(0,n-t)})),(0,h.Z)((0,d.Z)(r),"toggleMenu",vr()((function(){r.setState((function(e){var t=!e.isMenuOpen;return r.listenIEWindowScroll(!t),(0,gr.Z)(t),{isMenuOpen:t}}))}),100)),r.headerPortal=null,r.isIOSDevice=!1,r.prevPageYOffset=0,r.menu=i.createRef(),r.state={shouldBgFadeIn:!1,shouldHeaderFadeIn:!0,isMenuOpen:!1,windowHeight:0},r}
1return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.body=document.body;var e=window.navigator.userAgent;this.isIE=/Trident\/7\./.test(e),this.isIOSDevice=/iPhone|iPad|iPod/i.test(e),this.listenTouchMove(!0),this.listenIEWindowScroll(!0),this.listenWindowScroll(!0),this.listenWindowResize(!0),this.setState({windowHeight:window.innerHeight})}},{key:"componentWillUnmount",value:function(){this.listenTouchMove(!1),this.listenIEWindowScroll(!1),this.listenWindowScroll(!1),this.listenWindowResize(!1)}},{key:"listenTouchMove",value:function(e){var t=this.menu.current;this.isIOSDevice&&(e?t.addEventListener("touchmove",this.handleTouchMove,{passive:!1}):t.removeEventListener("touchmove",this.handleTouchMove,{passive:!1}))}},{key:"listenIEWindowScroll",value:function(e){var t=this.props.isEditor,n=this.body,r=this.isIE;!t&&r&&(e?n.addEventListener("mousewheel",this.handleIEScroll,{passive:!0}):n.removeEventListener("mousewheel",this.handleIEScroll,{passive:!0}))}},{key:"listenWindowScroll",value:function(e){!this.props.isEditor&&e?window.addEventListener("scroll",this.fadeHeader,{passive:!0}):window.removeEventListener("scroll",this.fadeHeader,{passive:!0})}},{key:"listenWindowResize",value:function(e){e?window.addEventListener("resize",this.handleWindowResize,{passive:!0}):window.removeEventListener("resize",this.handleWindowResize,{passive:!0})}},{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.Nav,r=t.TextBlock,o=t.textColor,i=t.bmBgType,a=t.bmBgGradientColor,c=t.bmBgColor,s=t.bmBgCoverUrl,l=t.bmCoverMask,d=t.isEditor,u=this.state,p=u.isMenuOpen,f=u.windowHeight,h=p&&{zIndex:110},v=d?"25vh":"18vh";return(0,w.jsxs)("div",{className:(0,m.iv)(Ir,(0,xr.Z)({bgType:i,bgGradientColor:a,bgColor:c,bgMobileUrl:s}),{color:o},Er(Hr(l)),p&&{opacity:.95,visibility:"visible"}),children:[(0,w.jsx)("div",{className:(0,m.iv)({height:v})}),(0,w.jsx)("div",{ref:this.menu,className:(0,m.iv)(Nr(f,v)),onClick:function(t){"A"===t.target.tagName&&e.toggleMenu()},children:n}),(0,w.jsx)("div",{className:(0,m.iv)(Mr(!0),h,Br),children:r})]})}},{key:"render",value:function(){var e,t=this.props,n=t._id,r=t.Icon,o=t.bmBtnColor,i=t.fontBgStyle,a=t.coverMask,c=t.animationType,s=t.isEditor,l=t.TextBlock,d=t.render
1SettingButton,u=this.state,p=u.isMenuOpen,f=u.shouldBgFadeIn,h=u.shouldHeaderFadeIn,v=p&&{zIndex:110},g=s?[zr(1,i,Hr(a))]:[!p&&!h&&{opacity:0,visibility:"hidden"},"3"===c&&!p&&zr(f?.95:0,i,Hr(a))];return(0,w.jsxs)("div",{className:m.iv.apply(void 0,[Sr,!s&&{zIndex:60},Zr(!s),!s&&kr,p&&{zIndex:100}].concat(g)),id:"zines-fixed-header",children:[s&&d(n),(0,w.jsxs)("div",{className:(0,m.iv)(Pr),children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("span",{onClick:this.toggleMenu,className:"".concat(p?"icon-times":"icon-bars"," ").concat((0,m.iv)(Cr,{color:o},v))}),this.renderMenu()]}),(0,w.jsx)("div",{className:(0,m.iv)(Dr,v),children:r}),Boolean(null===l||void 0===l||null===(e=l.props)||void 0===e?void 0:e.content)&&(0,w.jsx)("div",{className:(0,m.iv)(Mr(!1),Rr),children:l}),(0,w.jsx)("div",{className:(0,m.iv)(Fr)})]})]})}}]),n}(i.PureComponent);(0,h.Z)(jr,"defaultProps",{renderSettingButton:function(){return!1}});var Or=jr,Sr={position:"relative",transition:"visibility 0.2s linear, opacity 0.2s linear"},Zr=function(e){return{margin:e?".5rem":0,padding:".5rem"}},Pr={display:"flex",justifyContent:"space-between",minHeight:"80px",alignItems:"center","@media (min-width: 1600px)":{width:"83.3333%",margin:"0 auto"}},kr={position:"fixed",top:0,left:0,right:0},Cr={fontSize:"44px",color:G.P,cursor:"pointer",display:"inline-block",position:"absolute",top:"50%",left:"1rem",zIndex:6,transform:"translateY(-50%)"},Ir={position:"fixed",top:0,right:0,left:0,bottom:0,backgroundColor:G.P,opacity:0,zIndex:100,visibility:"hidden",transition:"visibility 0.3s linear, opacity 0.3s linear"},Dr={position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:6,"@media (max-width: 768px)":{position:"static",left:"auto",top:"auto",transform:"none",display:"flex",justifyContent:"center",textAlign:"center"}},Rr={"@media (max-width: 768px)":{display:"none"}},Fr={display:"none","@media (max-width: 768px)":{display:"block"}},Br={display:"none","@media (max-width: 768px)":{display:"flex"}},Nr=function(e,t){return{height:"calc(".concat(e,"px - ").concat(t," - 90px)"),display:"flex",justifyContent:"center",overflow:"auto","::-webkit-scrollbar":{width:"7px",backgroundColor:"transparent"},"::-webkit-scrollbar-thumb":{borderRadius:"5px",background:"gray"},"& a":{fontWeight:500,fontSize:"1rem"}}},Er=function(e){return{":after":Object.assign({zIndex:-1},Tr,e)}},zr=function(e,t,n){return{":before":Object.assign({zIndex:1,opacity:e},Tr,t),":after":Object.assign({zIndex:2,opacity:e},Tr,n)}},Tr={content:" ",position:"absolute",top:0,left:0,bottom:0,right:0,transition:"opacity .3s ease-in"};function Hr(e){switch(e){case"dark":return{background:"rgba(0, 0, 0, .5)"};case"light":return{background:"rgba(255, 255, 255, .5)"};default:return{}}}var Mr=function(e){return Object.assign(br(br({maxWidth:e?"100%":"248px",height:"80px",width:"100%",zIndex:6,overflow:"auto",display:"flex",flexDirection:"column",justifyContent:"center"},nr.K),{},{"& .fr-element":{padding:"0 !important"},"& .fr-view":{height:"90px"},"& p":{margin:"0 !important",padding:"0 !important"}}),e?{"& p":{margin:"0 !important",padding:"0 !important",textAlign:"center !important"},"& div":{margin:"0 !important",padding:"0 !important",textAlign:"center !important"}}:{})};function Ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ur(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _r(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var Ar=function(e){(0,u.Z)(n,e);var t=_r(n);function n(e){var r;return(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"toogleHeaderSlide",(function(){var e=(0,d.Z)(r),t=e.headerTopOffsetTop,n=e.header.current,o=window.pageYOffset,i=r.state,a=i.isHeaderFixed,c=i.headerHeight,s=n.offsetHeight;s!==c&&r.setState({headerHeight:c}),!a&&o>s+t?r.setState({isHeaderFixed:!0}
1):a&&o<=t&&r.setState({isHeaderFixed:!1,showFixHeader:!1}),r.slideHeader()})),r.header=i.createRef(),r.prevWindowYOffset=0,r.prevIsScrollUp=!1,r.headerPortal=null,r.headerTopOffsetTop=0,r.state={headerHeight:0,showFixHeader:!1,isHeaderFixed:!1},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){var e=this.header.current;this.headerPortal=document.getElementById("header_portal"),this.prevWindowYOffset=window.pageYOffset,this.headerTopOffsetTop=window.pageYOffset+e.getBoundingClientRect().top,this.setHeaderLayoutInfo(),this.setHeaderAnimation(!0)}},{key:"componentWillUnmount",value:function(){this.setHeaderAnimation(!1)}},{key:"setHeaderLayoutInfo",value:function(){var e=this.header.current;"0"!==this.props.animationType&&e&&this.setState({headerHeight:e.offsetHeight})}},{key:"setHeaderAnimation",value:function(e){var t=this.props,n=t.animationType;t.isEditor||"0"===n||(e?window.addEventListener("scroll",this.toogleHeaderSlide,{passive:!0}):window.removeEventListener("scroll",this.toogleHeaderSlide,{passive:!0}))}},{key:"slideHeader",value:function(){var e=this.props,t=e.animationType,n=e.scrollDistanceForAnimate,r=this.state.isHeaderFixed;if("1"!==t&&r){var o=window.pageYOffset;if(Math.abs(this.prevWindowYOffset-o)>n){var i=this.prevWindowYOffset>o;this.prevIsScrollUp!==i&&this.setState({showFixHeader:i}),this.prevWindowYOffset=o,this.prevIsScrollUp=i}}}},{key:"renderHeader",value:function(){var e,t=this.props,n=t.type,r=t._id,o=t.isEditor,i=t.Icon,a=t.Nav,c=t.TextBlock,s=t.fontBgStyle,l=t.bmBtnColor,d=t.animationType,u=t.showBurgerMenu,p=t.onMenuToogle,f=t.textColor,h=t.render
1SettingButton,y=this.state,b=y.headerHeight,j=y.isHeaderFixed,O=y.showFixHeader,S="Header"===n?210:200,Z=[];if(j)if(Z.push(s,qr,Vr(S)),"2"===d){var P={top:-1*b},k={transform:"translateY(".concat(b*(O&&!u?1:-1),"px)")};Z.push(P,k)}else if("3"===d){var C=O&&!u?{opacity:1,visibility:"visible"}:{opacity:0,visibility:"hidden"};Z.push({top:0},C)}else if("1"===d){var I={transform:"translateY(".concat(u?-1*b:0,"px)")};Z.push({top:0},I)}return(0,w.jsxs)(v.Z,{sectionId:r,wrapperType:"header",forwardRef:this.header,customStyle:"".concat(m.iv.apply(void 0,[{zIndex:"Header"===n?60:55}].concat(Z))),children:[o&&h(r),(0,w.jsx)(g.Z,{sectionId:r,isEditor:o,children:(0,w.jsx)(x.Z,{sectionId:r,layout:"full",children:(0,w.jsxs)("div",Lr(Lr({},"0"!==d?{id:"zines-fixed-header"}:{}),{},{className:(0,m.iv)(Yr),children:[(0,w.jsx)("div",{className:(0,m.iv)(Kr),children:i}),(0,w.jsxs)("div",{className:(0,m.iv)(Gr,{"& nav":{color:f,margin:"0 16px",minWidth:0}}),children:[a,Boolean(null===c||void 0===c||null===(e=c.props)||void 0===e?void 0:e.content)&&(0,w.jsx)("div",{className:(0,m.iv)(Jr),children:c})]}),(0,w.jsx)("span",{onClick:function(){return p(!0)},className:"icon-bars ".concat((0,m.iv)($r,{color:l}))})]}))})})]})}},{key:"render",value:function(){var e=this.state,t=e.headerHeight,n=e.isHeaderFixed;return(0,w.jsxs)(i.Fragment,{children:[n?Bn.createPortal(this.renderHeader(),this.headerPortal):this.renderHeader(),n&&(0,w.jsx)("div",{style:{height:t}})]})}}]),n}(i.Component);(0,h.Z)(Ar,"defaultProps",{renderSettingButton:function(){return!1}});var Wr=Ar,Yr={display:"flex",position:"relative",justifyContent:"start",alignItems:"center",minHeight:"64px",margin:"0 auto",width:"100%",padding:".5rem 0",boxSizing:"border-box","@media (min-width: 1600px)":{width:"83.3333%"},"@media (max-width: 1280px)":{padding:".5rem 1.5rem"},"@media (max-width: 768px)":{justifyContent:"space-between"}},Vr=function(e){return{position:"fixed",left:0,right:0,zIndex:e}},qr={transition:"all .4s ease-out"},Kr={zIndex:100,width:"25%",flexShrink:0},Gr={width:"100%",minWidth:0,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center","& a":{fontWeight:500},"@media (max-width: 768px)":{display:"none"}},$r={display:"none",fontSize:"44px",color:G.P,cursor:"pointer","@media (max-width: 768px)":{display:"inline-block",position:"absolute",top:"50%",right:"1rem",transform:"translateY(-50%)"}},Jr=Lr(Lr({maxWidth:"248px",width:"100%",height:"80px",marginRight:".5rem",overflow:"auto",display:"flex",flexDirection:"column",justifyContent:"center"},nr.K),{},{"& p":{margin:"0 !important",padding:"0 !important"},"& .fr-element":{padding:"0 !important"}}),Qr=n(26241);function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var no=function(e){(0,u.Z)(n,e);var t=to(n);function n(){var e;(0,s.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,h.Z)((0,d.Z)(e),"handleMenuToggle",(function(t){var n=e.props,r=n._id;(0,n.toogleBurgerMenu)(r,t)})),e}return(0,l.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.data,n=e.iconData,r=e.arbitraryContent,i=e.templateId,a=e.coverMask,c=e.query,s=c.isEditor,l=c.ENVIR,d=e.bgColor,u=2===i,p=4===i,f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;
1return o["Template".concat(e)]||Jn}(i),h=(0,Qr.Z)(i,s),m=(0,xr.Z)(this.props),v="normal"!==a&&oo(a);return(0,w.jsx)(f,eo(eo({},this.props),{},{Icon:(0,w.jsx)(Dn,{data:n,customStyle:h,config:{env:l}}),Nav:(0,w.jsx)(Tn,{data:t,rightAlign:u,vertical:3===i,leftAlign:p,bgColor:d}),TextBlock:(0,w.jsx)(y.Z,{content:r,shouldLazyLoad:!s,isShowPadding:!1}),fontBgStyle:m,maskStyle:v,onMenuToogle:this.handleMenuToggle,isEditor:s,noNavItems:0===t.length,scrollDistanceForAnimate:40}))}}]),n}(i.PureComponent),ro=no;var oo=function(e){return Object.assign({},"dark"===e&&Se._4,"light"===e&&Se.R2,Se.sS,{position:"absolute",height:"100%"})};var io=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,type:o.type,templateId:o.templateId,arbitraryContent:o.arbitraryContent,fixed:o.fixed,hideWhenScroll:o.hideWhenScroll,bgFadeIn:o.bgFadeIn,animationType:o.animationType,data:o.data,iconData:o.iconData,coverMask:o.coverMask,textColor:o.textColor,bgType:o.bgType,bgGradientColor:o.bgGradientColor,bgColor:o.bgColor,bgCoverUrl:o.bgCoverUrl,bgMobileUrl:o.bgMobileUrl,bmBtnColor:o.bmBtnColor,bmBgType:o.bmBgType,bmBgGradientColor:o.bmBgGradientColor,bmBgColor:o.bmBgColor,bmBgCoverUrl:o.bmBgCoverUrl}}))(ro),ao=n(12980);function co(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var so=function(e){(0,u.Z)(n,e);var t=co(n);function n(e){var r;(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"randomSortCard",(function(){var e=r.props,t=e.boxSorting,n=e.data;"random"===t?r.setState({shuffledDatas:xe()(n)}):r.setState({shuffledDatas:n})}));var o=e.data;return r.state={shuffledDatas:o},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.props.isLazyRender||this.randomSortCard()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isLazyRender,r=t.boxSorting,o=t.data,i=e.isLazyRender,a=e.boxSorting,c=e.data;i&&!n&&this.randomSortCard(),o!==c&&this.setState({shuffledDatas:"random"===r?xe()(o):o}),r!==a&&("random"===r?this.setState((function(e){var t=e.shuffledDatas;return{shuffledDatas:xe()(t)}})):this.setState({shuffledDatas:o}))}},{key:"render",value:function(){var e=this.props,t=e._id,n=e.isLazyRender,r=e.templateId,o=e.layout,i=e.forwardRef,a=e.query.isMobile,c=e.cardDisplayMode,s=e.openInNewTab,l=e.mobileDisplay,d=e.cardSize,u=this.state.shuffledDatas,p=sn.Z[o],f="slider"===c?"slider":"rwd"===c?"rwd":(0,ao.Z)(r),h=(0,ln.Z)(r);return(0,w.jsx)(v.Z,{sectionId:t,forwardRef:i,children:(0,w.jsx)(Fe,{sectionId:t,isLazyRender:n,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsx)("div",{className:(0,m.iv)({margin:"slider"===f?"8px 8px 2.5rem":"8px"}),children:(0,w.jsx)(an,{isLazyRender:n,layout:f,templateId:r,widthToViewportRatio:p,mobileDisplay:l,cardSize:d,children:function(e){var t=e.layoutConfig,o=e.forceUpdateKey,i=e.cardsPerRow,c=e.isSafari;return(0,w.jsx)(Xt,{cardConfig:h,cardsPerRow:i,datas:u,forceUpdateKey:o,isLazyRender:n,isMobileDevice:a,layout:f,layoutConfig:t,templateId:r,isSafari:c,openInNewTab:s})}})})})})})}}]),n}(i.Component);(0,h.Z)(so,"defaultProps",{isLazyRender:!1});var lo=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,data:o.data,boxSorting:o.boxSorting,templateId:o.templateId,layout:o.layout,cardDisplayMode:o.cardDisplayMode,openInNewTab:o.openInNewTab,mobileDisplay:o.mobileDisplay,cardSize:o.cardSize}}))(so),uo=n(14293),po=n.n(uo),fo=n(57557),ho=n.n(fo),mo=n(53988),vo=n(47940),go=n(26968);function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?xo(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var wo=function(e){(0,u.Z)(n,e);var t=bo(n);function n(e){var r;(0,s.Z)(this,n),r=t.call(this,e),(0,h.Z)((0,d.Z)(r),"template3Handler",vr()((function(){if(3===r.props.pdCardTemplate)var e=0,t=setInterval((function(){(e+=1)>2&&clearInterval(t);var n=document.querySelectorAll("div[data-selectorid='".concat(r.props._id,"'] .slick-track"));if(!po()(r.props.query)&&r.props.query.isMobile){var o=document.querySelectorAll("div[data-selectorid='".concat(r.props._id,"'] .slick-slide"));n[0].style.transform="translate3d(".concat(r.state.reactSlickShowCardIndex*r.state.template3MobileCardWidth*-1-(1===r.props.data.length?0:52),"px, 0px, 0px)"),n[0].style.width="".concat(r.state.template3MobileCardWidth*o.length,"px")}else n[0].style.transform="translate3d(".concat(1*r.state.reactSlickShowCardIndex*-946+159,"px, 0px, 0px)")}),1)}),100));var o=r.props,i=o.query,a=o.data,c=.12;po()(i)||po()(i.params)||po()(i.params.mode)||"preview"!==i.params.mode||(c=.15);var l=window.innerWidth;return r.state={reactSlickShowCardIndex:0,template3MobileCardWidth:l-l*c,processedData:a},r}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){"random"===this.props.boxSorting&&this.setState({processedData:this.handleArrShuffle()}),3===this.props.pdCardTemplate&&(this.template3Handler(),window.addEventListener("resize",this.template3Handler,{passive:!0}))}},{key:"componentWillUnmount",value:function(){3===this.props.pdCardTemplate&&window.removeEventListener("resize",this.template3Handler,{passive:!0})}},{key:"handleArrShuffle",value:function(){for(var e,t,n=this.props.data,r=(0,fe.Z)(n),o=this.props.data.length;0!==o;)t=Math.floor(Math.random()*o),e=r[o-=1],r[o]=r[t],r[t]=e;return r}},{key:"render",value:function(){var e=this,t=this.props,n=t._id,r=t.index,o=t.data,i=t.query,a=i.isMobile,c=i.isEditor,s=t.pdCardTemplate,l=this.state,d=l.processedData,u=l.template3MobileCardWidth,p=(0,vo.i)({layout:"full"}),f=(0,$.xL)({data:o,slidesToShow:p,pdCardTemplate:s,isMobile:a}),h=(0,go.qe)({slidesToShow:p,data:o}),y=o.length>3;3===s&&(y=o.length>1);var b={className:"pdCard",arrows:y,infinite:!1,speed:500,autoplay:o.length>=2,pauseOnHover:!0,adaptiveHeight:!0,nextArrow:(0,w.jsx)(T.Z,{type:"next",css:{right:0,padding:"5px"}}),prevArrow:(0,w.jsx)(T.Z,{type:"prev",css:{left:0,padding:"5px"}}),beforeChange:function(t,n){3===s&&(e.setState({reactSlickShowCardIndex:n}),e.template3Handler())}},j=3;2===s&&(j=4),b.slidesToShow=h>=j?j:h,b.slidesToScroll=h>=j?j:h,b.responsive=[{breakpoint:768,settings:{slidesToShow:1,centerMode:o.length>1,infinite:o.length>1,dots:!0}}],3===s&&(a?(b.slidesToShow=1,b.rows=3,b.slidesPerRow=1,b.slidesToScroll=1,b.dots=!0,b.infinite=!1):(b.slidesToShow=1,b.slidesToScroll=1,b.rows=1,b.slidesPerRow=1,b.centerMode=!0));var O=1===o.length?{"& .slick-track":{margin:"auto !important"}}:{};return(0,w.jsx)(v.Z,{sectionId:n,children:(0,w.jsx)(g.Z,{sectionId:n,isEditor:c,children:(0,w.jsx)(x.Z,{sectionId:n,children:(0,w.jsx)("div",{className:(0,m.iv)(Oo,H.Kw),children:(0,w.jsx)("div",{className:(0,m.iv)(f,3===s?{"& .slick-slide":a?{width:"".concat(u,"px !important")}:{width:"946px !important"}}:{},O),"data-selectorid":"".concat(this.props._id),children:o.length>0&&(0,w.jsx)(z.Z,yo(yo({},b),{},{children:d.map((function(t,n){return(0,w.jsx)("div",{className:(0,m.iv)(H.Kw,{}),children:(0,w.jsx)("div",{className:(0,m.iv)({margin:".3rem"}),children:(0,w.jsx)(D.Z,{href:t.srcUrl,target:a?"_self":"_blank",style:jo,children:(0,w.jsx)(mo.Z,yo(yo(yo({},t),ho()(e.props,["data"])),{},{defaultImgUrl:"https://assets.fevercdn.com/nc/icons/pic.svg"}))})})},"carousel".concat(r,"-").concat(n))}))}))})})})})})}}]),n}(i.Component),jo={color:G.P,textDecoration:"none"},Oo={margin:"1rem 1rem 2rem 1rem"},So=(0,ve.ZP)(wo);var Zo=(0,c.$j)((function(e,t){var n=e.sections,r=e.page,o=t.sectionId,i=n.find((function(e){return e._id===o}))||{};return{_id:i._id,index:i.index,data:i.data,boxLayout:i.boxLayout,boxSorting:i.boxSorting,pdCardTemplate:i.pdCardTemplate,page:r}}))(So),Po=n(52654);function ko(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ko(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Io={color:G.P,textDecoration:"none"},Do={margin:"1rem 1rem 2rem 1rem"},Ro={"@media(max-width: 480px)":{"& .slick-list":{padding:"0 35px"}}},Fo=function(e){var t=e._id,n=e.index,r=e.data,o=e.layout,i=e.isMobile,a=e.isEditor,c=(0,vo.i)({layout:o}),s=(0,$.Gn)({data:r,slidesToShow:c}),l=(0,go.qe)({slidesToShow:c,data:r}),d=(0,go.oc)({slidesToShow:c,data:r}),u=(0,go.yt)({data:r,slidesToShow:c,dot:d,slide:l});return(0,w.jsx)(v.Z,{sectionId:t,children:(0,w.jsx)(g.Z,{sectionId:t,isEditor:a,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsx)("div",{className:(0,m.iv)(Do,H.Kw),children:(0,w.jsx)("div",{className:(0,m.iv)(s,Ro),children:r.length>0&&(0,w.jsx)(z.Z,Co(Co({},u),{},{children:r.map((function(e,t){var r=e.srcUrl,o=e.imgUrl,a=e.title;return(0,w.jsx)("div",{children:(0,w.jsx)(D.Z,{href:r,target:i?"_self":"_blank",style:Io,children:(0,w.jsx)(Po.Z,{imgUrl:o||"",title:a,defaultImgUrl:"https://assets.fevercdn.com/nc/icons/pic.svg"})})},"carousel".concat(n,"-").concat(t))}))}))})})})})})};var Bo=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{_id:o._id,index:o.index,data:o.data,layout:o.layout}}))(Fo),No=n(86995),Eo=n.n(No),zo=n(67891),To=n(13308);function Ho(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var Mo=function(e){(0,u.Z)(n,e);var t=Ho(n);function n(){var e;(0,s.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,h.Z)((0,d.Z)(e),"handleExitFullScreen",(function(){var t=e.props.onClose;null===(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&t()})),e}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.toggleFullScreenExitListener(!0)}},{key:"componentWillUnmount",value:function(){this.toggleFullScreenExitListener(!1)}},{key:"toggleFullScreenExitListener",value:function(e){var t=e?"addEventListener":"removeEventListener",n=this.handleExitFullScreen;document[t]("fullscreenchange",n,!1),document[t]("webkitfullscreenchange",n,!1),document[t]("mozfullscreenchange",n,!1)}},{key:"render",value:function(){var e=this.props,t=e.src,n=e.onClose,r=e.onPrev,o=e.onNext;return(0,w.jsxs)("div",{className:(0,m.iv)(Uo,{background:"url(".concat(t,") 50% 50% / contain no-repeat ").concat(G.P)}),children:[(0,w.jsx)(To.Z,{containerStyle:Lo,iconClass:"icon-times",iconStyle:Wo,onClick:n}),(0,w.jsx)(To.Z,{containerStyle:_o,iconClass:"icon-angle-left",iconStyle:Wo,onClick:r}),(0,w.jsx)(To.Z,{containerStyle:Ao,iconClass:"icon-angle-right",iconStyle:Wo,onClick:o})]})}}]),n}(i.Component);(0,h.Z)(Mo,"defaultProps",{src:"",onClose:function(){},onPrev:function(){},onNext:function(){}});var Uo={width:"100%",height:"100%",position:"relative"},Lo={position:"absolute",top:"35px",right:"35px","@media(max-width: 568px)":{top:"8px",right:"8px"}},_o={position:"absolute",left:0,top:"50%",transform:"translateY(-50%)"},Ao={position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"},Wo={fontSize:"44px",color:G.E};function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qo(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var Ko=function(e){(0,u.Z)(n,e);var t=qo(n);function n(){var e;(0,s.Z)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,h.Z)((0,d.Z)(e),"state",{isZoom:!1,showFooterBar:!0,shouldTransition:!1}),(0,h.Z)((0,d.Z)(e),"bodyRef",i.createRef()),(0,h.Z)((0,d.Z)(e),"handleZoomImg",(function(){e.setState({isZoom:!0}),di(!0)})),(0,h.Z)((0,d.Z)(e),"handleCloseZoomImg",(function(){e.setState({isZoom:!1}),di(!1)})),(0,h.Z)((0,d.Z)(e),"handleKeyDown",(function(t){var n=(0,d.Z)(e),r=n.props,o=r.onClose,i=r.onPrevImg,a=r.onNextImg,c=n.state.isZoom,s=n.handleCloseZoomImg;switch(t.keyCode){case 27:c?s():o();break;case 37:i();break;case 39:a()}})),(0,h.Z)((0,d.Z)(e),"toggleFooterBar",(function(){window.matchMedia("(max-width: 568px)").matches&&e.setState((function(e){return{showFooterBar:!e.showFooterBar,shouldTransition:!0}}))})),e}return(0,l.Z)(n,[{key:"componentDidMount",value:function(){this.props.show&&(this.listenKeyDown(),(0,zo.disableBodyScroll)(this.bodyRef.current))}},{key:"componentDidUpdate",value:function(e){var t=e.show,n=e.data,r=this.props,o=r.show,i=r.data;(t&&!o?(this.listenKeyDown(!1),(0,zo.enableBodyScroll)(this.bodyRef.current)):!t&&o&&(this.listenKeyDown(),(0,zo.disableBodyScroll)(this.bodyRef.current),this.setState((function(e){return e.showFooterBar?null:{showFooterBar:!0}}))),n!==i)&&(this.bodyRef.current.scrollTop=0,this.setState((function(e){return e.shouldTransition?{shouldTransition:!1}:null})))}},{key:"componentWillUnmount",value:function(){this.listenKeyDown(!1),(0,zo.clearAllBodyScrollLocks)()}},{key:"listenKeyDown",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"addEventListener":"removeEventListener";document[t]("keydown",this.handleKeyDown,!1)}},{key:"render",value:function(){var e=this.props,t=e.data,n=t.imgUrl,r=t.originalImgUrl,o=t.title,i=t.description,a=t.href,c=t.linkBtnText,s=e.style,l=e.show,d=e.onClose,u=e.onPrevImg,p=e.onNextImg,f=e.isIE,h=this.state,v=h.isZoom,g=h.showFooterBar,x=h.shouldTransition,y=this.handleZoomImg,b=this.handleCloseZoomImg,j=this.toggleFooterBar,O=Boolean(o||i||a),S=null!==r&&void 0!==r?r:n;return(0,w.jsx)(Eo(),{allowMouseEvents:!1,onSwipeLeft:p,onSwipeRight:u,tolerance:70,children:(0,w.jsxs)("div",{className:(0,m.iv)(Go,!l&&{display:"none"},s),children:[v&&(0,w.jsx)(Mo,{src:S,onClose:b,onPrev:u,onNext:p}),(0,w.jsx)("div",{className:(0,m.iv)($o),children:(0,w.jsx)(To.Z,{containerStyle:Jo,iconClass:"icon-times",iconStyle:Qo,onClick:d})}),(0,w.jsxs)("div",{className:(0,m.iv)(Xo(!g&&O,x)),ref:this.bodyRef,onClick:j,children:[(0,w.jsx)("div",{className:(0,m.iv)(ei(O)),children:(0,w.jsx)("img",{src:S,alt:o,className:(0,m.iv)(ti(O,f))})}),(0,w.jsx)("div",{className:(0,m.iv)(ni,!O&&{display:"none"}),children:(0,w.jsxs)("div",{className:(0,m.iv)(ri),children:[(0,w.jsx)("div",{className:"line-clamp-3 ".concat((0,m.iv)(oi)),children:o}),(0,w.jsx)("div",{className:"line-clamp-6 ".concat((0,m.iv)(ii)),children:i}),a&&(0,w.jsx)(D.Z,{href:a,stopPropagation:!0,children:(0,w.jsx)("button",{className:(0,m.iv)(ai),children:c||(0,w.jsx)(me.Z,{id:"gallery.input.placehold.open_url",defaultMessage:"Open link"})})})]})})]}),(0,w.jsxs)("div",{className:(0,m.iv)(ci(g)),children:[(0,w.jsx)(To.Z,{iconClass:"icon-angle-left",iconStyle:si,onClick:u}),(0,w.jsx)(To.Z,{containerStyle:li,iconClass:"icon-search",iconStyle:si,onClick:y}),(0,w.jsx)(To.Z,{iconClass:"icon-angle-right",iconStyle:si,onClick:p})]})]})})}}]),n}(i.Component);(0,h.Z)(Ko,"defaultProps",{data:{},style:null,show:!0,onClose:function(){},onPrevImg:function(){},onNextImg:function(){}});var Go={backgroundColor:G.E,position:"relative"},$o={height:"80px",position:"relative","@media(max-width: 568px)":{height:"60px"}},Jo={position:"absolute",top:"35px",right:"35px","@media(max-width: 568px)":{top:"8px",right:"8px"}},Qo={fontSize:"44px",color:G.P},Xo=function(e,t){return{height:"calc(100% - 180px)",display:"flex",flexWrap:"nowrap","@media(max-width: 568px)":Vo(Vo({display:"block",overflow:"auto",height:"calc(100% - ".concat(e?"60px":"140px",")")},t?{transition:"height .2s linear"}:{}),{},{"> div":{padding:"0 4%"}})}},ei=function(e){return{boxSizing:"border-box",height:"100%",padding:e?"0 2% 0 4%":0,flexBasis:e?"66%":"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column","@media(max-width: 568px)":{height:e?"auto":"100%"}}},ti=function(e,t){return{maxWidth:"100%",maxHeight:"100%",minHeight:t?"200px":"auto",margin:"0 auto","@media(max-width: 568px)":{maxHeight:e?"300px":"100%"}}},ni={boxSizing:"border-box",height:"100%",flexBasis:"34%",padding:"0 4% 0 2%",display:"flex",flexDirection:"column",justifyContent:"center","& *":{fontWeight:500},"@media(max-width: 568px)":{height:"auto"}},ri={padding:"18px 0 20px","@media(max-width: 568px)":{padding:"20px 0"}}
1,oi={overflow:"hidden",whiteSpace:"pre-wrap",maxHeight:"95px",fontSize:"1.5em",lineHeight:1.3},ii={overflow:"hidden",whiteSpace:"pre-wrap",maxHeight:"168px",fontSize:"1em",lineHeight:1.8,marginTop:"20px"},ai={margin:0,marginTop:"20px",fontSize:"14px",lineHeight:1.2,padding:"8px 10px",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"center",backgroundColor:"transparent",transition:"all .2s linear",border:"1px solid ".concat(G.G),color:G.G,"@media(min-width: 568px)":{":hover":{backgroundColor:G.G,color:G.E}},":focus":{outline:"none"},cursor:"pointer"},ci=function(e){return{boxSizing:"border-box",height:"100px",display:"flex",justifyContent:"center",alignItems:"center","@media(max-width: 568px)":{height:"80px",borderTop:"1px solid ".concat(G.F),transition:"transform .2s linear",transform:"translateY(".concat(e?0:"80px",")")}}},si={fontSize:"44px",color:G.P},li={margin:"0 70px"};function di(e){if(e){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()}else if(!e&&document.fullscreen){var n=document;n.exitFullscreen?n.exitFullscreen():n.mozCancelFullScreen?n.mozCancelFullScreen():n.webkitExitFullscreen?n.webkitExitFullscreen():n.msExitFullscreen&&n.msExitFullscreen()}}var ui=n(66800),pi=n(84805),fi=["isLazyRender"];function hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mi(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}function vi(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.Z)(e);if(t){var o=(0,f.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.Z)(this,n)}}var gi=function(e,t){var n,r=(n=function(n){(0,u.Z)(o,n);var r=mi(o);function o(){var e;(0,s.Z)(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e=r.call.apply(r,[this].concat(n)),(0,h.Z)((0,d.Z)(e),"state",{portal:null}),e}return(0,l.Z)(o,[{key:"componentDidMount",value:function(){this.props.isLazyRender||this.setPortal()}},{key:"componentDidUpdate",value:function(e){e.isLazyRender&&!this.props.isLazyRender&&this.setPortal()}},{key:"setPortal",value:function(){this.setState({portal:document.getElementById(e)})}},{key:"render",value:function(){var e=this.props,n=(e.isLazyRender,(0,K.Z)(e,fi)),r=this.state.portal;return null!==r&&Bn.createPortal((0,w.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(n),!0).forEach((function(t){(0,h.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n)),r)}}]),o}(i.Component),(0,h.Z)(n,"defaultProps",{isLazyRender:!1}),n);return r.displayName="WithPortal(".concat((0,pi.Z)(t),")"),r}("dialog_portal",Ko),xi=function(e){(0,u.Z)(n,e);var t=vi(n);function n(){var e;(0,s.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,h.Z)((0,d.Z)(e),"state",{currentPopUpImgId:null,isIE:!1}),(0,h.Z)((0,d.Z)(e),"handleImgClicked",(function(t){return e.setState({currentPopUpImgId:t})})),(0,h.Z)((0,d.Z)(e),"handlePopupOnClose",(function(){return e.setState({currentPopUpImgId:null})})),(0,h.Z)((0,d.Z)(e),"handleToPrevImg",(function(){var t=e.props.datas,n=e.state.currentPopUpImgId,r=t.findIndex((function(e){return e.id===n})),o=r-1<0?t.length-1:r-1;e.setState({currentPopUpImgId:t[o].id})})),(0,h.Z)((0,d.Z)(e),"handleToNextImg",(function(){var t=e.props.datas,n=e.state.currentPopUpImgId,r=(t.findIndex((function(e){return e.id===n}))+1)%t.length;e.setState({currentPopUpImgId:t[r].id})})),e}
1return(0,l.Z)(n,[{key:"componentDidCatch",value:function(e,t){console.log("error",e),console.log("errorInfo",t)}},{key:"componentDidMount",value:function(){var e=window.navigator.userAgent;this.setState({isIE:/Trident\/7\./.test(e)})}},{key:"render",value:function(){var e=this.props,t=e.clickOpenLink,n=e.datas,r=e.isLazyRender,o=e.templateId,a=this.state,c=a.currentPopUpImgId,s=a.isIE,l=this.handleImgClicked,d=this.handlePopupOnClose,u=this.handleToPrevImg,p=this.handleToNextImg,f=n.find((function(e){return e.id===c}));return(0,w.jsxs)(i.Fragment,{children:[(0,w.jsx)(gi,{data:f,isLazyRender:r,style:yi,show:null!==c,onClose:d,onPrevImg:u,onNextImg:p,isIE:s}),(0,w.jsx)(ui.Z,{clickOpenLink:t,datas:n,isLazyRender:r,onImageClick:l,templateId:o,style:bi})]})}}]),n}(i.Component),yi={width:"100vw",height:"100%",position:"fixed",top:0,left:0},bi={padding:"16px 4px","@media(max-width: 568px)":{padding:"16px 2px"}};var wi=(0,c.$j)((function(e,t){var n=e.sections,r=t.sectionId,o=n.find((function(e){return e._id===r}))||{};return{id:o.id,_id:o._id,data:o.data,layout:o.layout,templateId:o.templateId||1,isOpenLink:o.isOpenLink}}))((function(e){var t=e._id,n=e.data,r=e.forwardRef,o=void 0===r?function(){}:r,i=e.isLazyRender,a=e.templateId,c=e.isOpenLink;return(0,w.jsx)(v.Z,{forwardRef:o,sectionId:t,children:(0,w.jsx)(g.Z,{sectionId:t,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsx)(xi,{datas:n,isLazyRender:i,clickOpenLink:c,templateId:a})})})})})),ji=n(23597);var Oi=function(e){var t=e.sectionId,n=e.forwardRef,r=void 0===n?function(){}:n,o=e.isLazyRender;return(0,w.jsx)(v.Z,{sectionId:t,forwardRef:r,children:(0,w.jsx)(g.Z,{sectionId:t,children:(0,w.jsx)(x.Z,{sectionId:t,children:(0,w.jsx)(ji.Z,{sectionId:t,isLazyRender:o})})})})};var Si=function(e){var t=e._id,n=e.type,r=e.query,o=e.toogleBurgerMenu,i=e.showBurgerMenu,c=e.renderSettingButton,s=void 0===c?function(){return!1}:c;switch(n){case"Header":case"PageHeader":return(0,w.jsx)(io,{sectionId:t,query:r,toogleBurgerMenu:o,showBurgerMenu:i,renderSettingButton:s});case"BreadCrumbs":return(0,w.jsx)(C.Z,{sectionId:t,query:r,renderSettingButton:s});case"TextBox":return(0,w.jsx)(a.df,{triggerOnce:!0,rootMargin:"10%",children:function(e){var n=e.inView,o=e.ref;return(0,w.jsx)(k,{sectionId:t,query:r,isLazyRender:!n,forwardRef:o})}});case"IMG":return(0,w.jsx)(E,{sectionId:t,query:r});case"SlideShow":return(0,w.jsx)(A,{sectionId:t,query:r});case"Video":return(0,w.jsx)(q,{sectionId:t,query:r});case"ListFeed":return(0,w.jsx)(ie,{sectionId:t,query:r});case"Carousel":return(0,w.jsx)(Bo,{sectionId:t,query:r});case"PdCard":return(0,w.jsx)(Zo,{sectionId:t,query:r});case"InfoCard":return(0,w.jsx)(a.df,{triggerOnce:!0,rootMargin:"10%",children:function(e){var n=e.inView,o=e.ref;return(0,w.jsx)(lo,{sectionId:t,query:r,isLazyRender:!n,forwardRef:o})}});case"Embed":return(0,w.jsx)(pe,{sectionId:t,query:r});case"Gallery":return(0,w.jsx)(a.df,{triggerOnce:!0,rootMargin:"10%",children:function(e){var n=e.inView,r=e.ref;return(0,w.jsx)(wi,{isLazyRender:!n,sectionId:t,forwardRef:r})}});case"Form":return(0,w.jsx)(a.df,{triggerOnce:!0,rootMargin:"10%",children:function(e){var n=e.inView,r=e.ref;return(0,w.jsx)(Oi,{isLazyRender:!n,sectionId:t,forwardRef:r})}});case"TagFeed":return(0,w.jsx)(a.df,{triggerOnce:!0,rootMargin:"10%",children:function(e){var n=e.inView,o=e.ref;return(0,w.jsx)(On,{sectionId:t,query:r,isLazyRender:!n,forwardRef:o})}});case"Sponsor":return(0,w.jsx)(Sn.Z,{query:r,children:(0,w.jsx)(k,{sectionId:t,query:r,renderSettingButton:s})});default:return!1}}},28949:function(e,t,n){"use strict";n(67294);var r=n(26113),o=n(85893);t.Z=function(e){var t=e.type,n=e.id,a=e.css,c=e.onClick,s="next"===t?"icon_arrow_next":"icon_arrow_prev";return(0,o.jsx)("div",{id:"undefined"===typeof n?null:n,className:(0,r.iv)(i,{left:"prev"===t&&0,right:"next"===t&&0},a),onClick:c,children:(0,o.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/".concat(s,".svg"),alt:"icon"})})};var i={position:"absolute",top:"calc(50% - 1.5rem)",padding:0,margin:0,cursor:"pointer",zIndex:2}},39465:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(67294),o=n(26113),i={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none",zIndex:0},a={width:"100%",height:"100%",border:"none",pointerEvents:"none"},c=n(85893);function s(e){var t=e.htmlUrl,n=e.sandbox,s=void 0===n?"allow-scripts allow-same-origin":n,l=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=l.current;return function(){if(e)try{e.src="about:blank"}catch(t){}}}),[]),t?(0,c.jsx)("div",{className:(0,o.iv)(i),children:(0,c.jsx)("iframe",{ref:l,src:t,sandbox:s,className:(0,o.iv)(a),scrolling:"no",title:"HTML Backgroun
1d Effect","aria-label":"Background HTML effect preview",loading:"lazy"})}):(console.warn("[BackgroundHtml]: htmlUrl is empty"),null)}var l=(0,r.memo)(s)},8239:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(67294),o=n(5152),i=n.n(o),a=n(26113),c={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden",pointerEvents:"none",zIndex:0},s={width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},l=n(85893),d=i()((function(){return n.e(1900).then(n.bind(n,61900)).then((function(e){return e.DotLottieReact}))}),{ssr:!1,loading:function(){return(0,l.jsx)("div",{className:(0,a.iv)(p)})},loadableGenerated:{webpack:function(){return[61900]}}});function u(e){var t=e.lottieUrl,n=e.lottieMobileUrl,o=e.loop,i=void 0===o||o,u=e.autoplay,p=void 0===u||u,m=(0,r.useState)(!1),v=m[0],g=m[1];(0,r.useEffect)((function(){g(window.matchMedia("(max-width: ".concat(480,"px)")).matches);var e=window.matchMedia("(max-width: ".concat(480,"px)")),t=function(e){return g(e.matches)};return e.addEventListener?e.addEventListener("change",t):e.addListener(t),function(){e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}}),[]);var x=v&&n||t,y=(0,r.useRef)({url:void 0,token:""});if(!x)return null;y.current.url!==x&&(y.current={url:x,token:String(Date.now())});var b="".concat(x,"?t=").concat(y.current.token);return(0,l.jsx)("div",{className:(0,a.iv)(c),children:(0,l.jsx)("div",{className:(0,a.iv)(s),children:(0,l.jsx)(d,{src:b,loop:i,autoplay:p,style:f,layout:h},x)})})}var p={width:"100%",height:"100%",backgroundColor:"transparent"},f={width:"100%",height:"100%"},h={fit:"cover",align:[.5,.5]},m=(0,r.memo)(u)},52654:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(59499),o=(n(67294),n(26113)),i=n(2475),a=n(44012),c=n(61226),s=n(68250),l=n(59177),d=n(85893);var u=function(e){var t=e.type,n=e.unlockNeeds;switch(t){case"locked":return(0,d.jsx)("div",{className:(0,o.iv)(c.ol),children:(0,d.jsxs)("div",{className:(0,o.iv)(p,c.Ym),children:[(0,d.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/icon_cardImg_lock.svg",style:h,alt:"cardImg"}),(0,d.jsx)(a.Z,{id:"prize.unlock_needs",defaultMessage:"Unlock needs {unlockNeeds, plural, one {# participant} other {# participants}}",values:{unlockNeeds:n}})]})});case"announced":case"instant_win":case"scratch_cards":case"send_out":case"experience":case"share":return(0,d.jsx)("div",{className:(0,o.iv)(c.ol),children:(0,d.jsx)("div",{className:(0,o.iv)(f,p,c.Ym),children:(0,d.jsx)(a.Z,{id:"prize.".concat(t),defaultMessage:"label"})})});default:return(0,d.jsx)("div",{})}},p={zIndex:2,margin:".75rem",color:"white"},f={background:s.t,margin:".75rem",padding:".5rem 1rem",fontSize:".875rem",boxShadow:l.j},h={display:"inline-block",marginRight:".5rem"},m=n(10221);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e){var t=e.type,n=e.unlockNeeds,r=e.imgUrl,a=e.title,c=void 0===a?"":a,s=e.subTitle,l=e.defaultImgUrl,p=e.isEdit,f=e.onChangeText,h=e.onPickImage,v=e.customBgStyle,g=e.customTitleStyle;return(0,d.jsx)("div",{className:(0,o.iv)(y),children:(0,d.jsxs)("div",{className:(0,o.iv)(b),children:[t&&(0,d.jsx)(u,{type:t,unlockNeeds:n}),(0,d.jsxs)("div",{className:(0,o.iv)(w(l),v),children:[(0,d.jsx)("div",{className:(0,o.iv)(j(r),O(r,"locked"===t))}),p&&(0,d.jsx)(m.Z,{onPick:h,className:"".concat((0,o.iv)(i.Kw,C)),children:(0,d.jsx)("img",{className:(0,o.iv)({width:"4rem"}),src:"https://assets.fevercdn.com/nc/icons/icon_uploadZon_upload.svg",alt:"upload"})})]}),(0,d.jsxs)("div",{className:(0,o.iv)(S,g),children:[p&&(0,d.jsx)("textarea",{onChange:f,className:(0,o.iv)(Z,k),defaultValue:c}),!p&&(0,d.jsx)("textarea",{className:(0,o.iv)(Z),value:c,readOnly:!0}),(0,d.jsx)("div",{className:(0,o.iv)(P),dangerouslySetInnerHTML:{__html:s}})]})]})})},y={padding:".5rem"},b={cursor:"pointer",backgroundColor:s.E,boxShadow:l.xF,borderRadius:"2px"},w=function(e){return{background:"url('".concat(e,"') center center no-repeat ").concat(s.H),backgroundSize:"30%",overflow:"hidden"}},j=function(e){return g({position:"relative",width:"100%",paddingTop:"100%",overflow:"hidden",backgroundRepeat:"no-repeat",backgroundPosition:"50%",backgroundSize:"cover",backgroundColor:s.H},Boolean(e)?{backgroundImage:"url(".concat(e,")")}:{})},O=function(e,t){return g({height:"100%",opacity:e?1:0,transition:"all .5s"},t?{filter:"brightness(0.5)"}:{":hover":{transform:"scale(1.3)"}})},S={padding:"1rem"},Z={resize:"none",color:s.P,fontSize:"1.3rem",marginBottom:"1rem",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",
1width:"100%",height:"3.6rem",lineHeight:"1.8rem",background:"transparent",padding:0,boxSizing:"border-box",wordWrap:"break-word",border:"1px dashed transparent",":focus":{outline:"none"}},P={fontSize:"1rem"},k={overflow:"auto",border:"1px dashed ".concat(s.L),transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#555"}},C={position:"absolute",top:".5rem",left:".5rem",cursor:"pointer",width:"calc(100% - 1rem)",height:"calc(100% - 7.5rem)",margin:0}},56281:function(e,t,n){"use strict";var r=n(59499),o=n(4730),i=(n(67294),n(26113)),a=n(61226),c=n(68250),s=n(85893),l=["type","className"];function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.type,n=void 0===t?"":t,r=e.className,c=(0,o.Z)(e,l);return(0,s.jsx)("div",{style:a.ol,children:(0,s.jsx)("span",u({className:"icon-times".concat(n," ").concat((0,i.iv)(p,a.Ym,a.yY)," ").concat(r)},c))})};var p={zIndex:3,color:c.I,backgroundClip:"content-box",borderRadius:"50%"}},38042:function(e,t,n){"use strict";n(67294);var r=n(26113),o=n(89392),i=n(2475),a=n(10221),c=n(68250),s=n(59177),l=n(85893);t.Z=function(e){var t=e.imgUrl,n=e.title,c=void 0===n?"":n,s=e.subTitle,b=e.layout,w=e.isEdit,j=e.onChangeText,O=e.onPickImage,S=e.customBgStyle,Z=e.customTitleStyle;return(0,l.jsxs)("div",{className:(0,r.iv)(i.CD,d),children:[(0,l.jsx)("div",{className:(0,r.iv)(u(b)),children:(0,l.jsxs)("div",{className:(0,r.iv)(f,o.nC,o.fK,S),children:[t&&(0,l.jsx)("div",{className:(0,r.iv)(g(t),o.kQ)}),w&&(0,l.jsx)(a.Z,{onPick:O,className:"".concat((0,r.iv)(i.Kw,y)),children:(0,l.jsx)("img",{className:(0,r.iv)({width:"normal"===b?"4rem":"3rem"}),src:"https://assets.fevercdn.com/nc/icons/icon_uploadZon_upload.svg",alt:"upload"})})]})}),(0,l.jsxs)("div",{className:(0,r.iv)(p(b),Z),children:[w&&(0,l.jsx)("textarea",{onChange:j,className:(0,r.iv)(h(b),m,x),rows:h(b).WebkitLineClamp,defaultValue:c}),!w&&(0,l.jsx)("textarea",{className:(0,r.iv)(h(b),m,{cursor:"pointer"}),rows:h(b).WebkitLineClamp,value:c,readOnly:!0}),(0,l.jsx)("div",{className:(0,r.iv)(v),dangerouslySetInnerHTML:{__html:s}})]})]})};var d={position:"relative",cursor:"pointer",backgroundColor:"rgba(255,255,255, .8)",boxShadow:s.xF,marginBottom:"1rem"},u=function(e){return{width:"normal"===e?"16.6%":"25%","@media(max-width: 480px)":{width:"35%"}}},p=function(e){return{width:"normal"===e?"83.4%":"75%","@media(max-width: 480px)":{width:"65%"}}},f={background:"url('https://assets.fevercdn.com/nc/icons/pic.svg') center center no-repeat ".concat(c.H),backgroundSize:"40%",overflow:"hidden"},h=function(e){return{margin:".5rem",fontSize:"normal"===e?"1.5rem":"1.3rem",WebkitLineClamp:e?"\n    ".concat("normal"===e?3:"","\n    ").concat("fit"===e?2:"","\n    ").concat("full"===e?1:"","\n    "):null,padding:"normal"===e?"10px":"5px",width:"normal"===e?"80%":"72%",height:"normal"===e?"6.5rem":"5rem","@media(max-width: 1280px)":{height:"normal"===e?"5rem":"3.8rem"},"@media(max-width: 1280px) and (-webkit-min-device-pixel-ratio:0)":{height:"normal"===e?"4rem":"3.5rem"},"@media(max-width: 768px)":{WebkitLineClamp:3},"@media(max-width: 480px)":{width:"60%",padding:0,height:"5.5rem",fontSize:"1.1rem",overflow:"hidden",WebkitLineClamp:2}}},m={position:"absolute",resize:"none",color:c.P,lineHeight:"1.2",display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",boxSizing:"border-box",border:"1px dashed transparent",wordWrap:"break-word",background:"transparent",":focus":{outline:"none"}},v={fontSize:"1rem"},g=function(e){return{position:"relative",width:"100%",paddingTop:"100%",overflow:"hidden",backgroundImage:"url(".concat(e,")"),backgroundRepeat:"no-repeat",backgroundPosition:"50%",backgroundSize:"cover",backgroundColor:c.H}},x={textAlign:"left",overflow:"auto",border:"1px dashed ".concat(c.L),transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#555"}},y={position:"absolute",top:0,cursor:"pointer",width:"100%",height:"100%",margin:0}},67472:function(e,t,n){"use strict";var r=n(59499),o=n(4730),i=(n(67294),n(26113)),a=n(85893),c=["url","customStyle"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.Z=function(e){var t=e.url,n=e.customStyle,l=(0,o.Z)(e,c);return(0,a.jsx)("iframe",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({title:"iframe",src:t,allowTransparency:"true",allowFullScreen:"allowFullScreen",scrolling:"no",seamless:"seamless",frameBorder:"0",className:(0,i.iv)({width:"100%",height:"100%"},n)},l))}},45308:function(e,t,n){"use strict";var r=n(59499),o=n(4730),i=(n(67294),n(1216)),a=n(85893),c=["once","placeholder","disable","children"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.once,n=e.placeholder,r=e.disable,s=void 0!==r&&r,d=e.children,u=(0,o.Z)(e,c);return s?d:(0,a.jsx)(i.ZP,l(l({once:t,placeholder:n},u),{},{children:d}))}},10221:function(e,t,n){"use strict";n(67294);var r=n(84613),o=n(85893);t.Z=function(e){var t=e.onPick,n=e.onCancel,i=e.children,a=e.className,c=e.sourceContext,s=e.mode,l=e.autoOpen,d=(0,r.Z)({mode:s,sourceContext:c,onPick:t,onCancel:n,autoOpen:l}),u=d.openPicker,p=d.dialogElement;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:a,onClick:function(e){e.stopPropagation(),u()},children:i}),p]})}},53988:function(e,t,n){"use strict";n.d(t,{Z:function(){return Re}});var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(14293),u=n.n(d),p=n(67294),f=n(74806),h=n(26113),m=n(44012),v=n(2475),g=n(35161),x=n.n(g),y=n(68250),b=n(59177),w=n(85893);function j(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var O=function(e){(0,a.Z)(n,e);var t=j(n);function n(e){var o;(0,r.Z)(this,n),o=t.call(this,e),(0,l.Z)((0,i.Z)(o),"onColorSelectClick",(function(e){"text"===e?o.setState({isShowTextColorSelectArea:!o.state.isShowTextColorSelectArea,isShowBgColorSelectArea:!1}):"bg"===e&&o.setState({isShowBgColorSelectArea:!o.state.isShowBgColorSelectArea,isShowTextColorSelectArea:!1})})),(0,l.Z)((0,i.Z)(o),"onColorSelectAreaRadioClick",(function(e){o.state.isShowTextColorSelectArea?o.props.onTextColorRadioClick(e):o.state.isShowBgColorSelectArea&&o.setState({backgroundColor:e},(function(){o.props.onBgColorRadioClick(e)}))}));var a="bold";return u()(o.props.nowEditStyle.fontWeight)||(a=o.props.nowEditStyle.fontWeight),o.state={boldValue:a,isShowTextColorSelectArea:!1,isShowBgColorSelectArea:!1,isFontBold:"bold"===o.props.nowEditStyle.fontWeight||"500"===o.props.nowEditStyle.fontWeight,backgroundColor:u()(o.props.nowEditStyle.backgroundColor)?"":o.props.nowEditStyle.backgroundColor},o}return(0,o.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(this.props.type!==e.type){var t="bold";u()(e.nowEditStyle.fontWeight)||(t=e.nowEditStyle.fontWeight),this.setState({boldValue:t,isFontBold:"bold"===e.nowEditStyle.fontWeight||"500"===e.nowEditStyle.fontWeight,backgroundColor:u()(e.nowEditStyle.backgroundColor)?"":e.nowEditStyle.backgroundColor,isShowTextColorSelectArea:!1,isShowBgColorSelectArea:!1})}}},{key:"render",value:function(){var e=this,t=this.props,n=t.onFontWeightClick,r=t.isHideFontWeightBtn,o=t.isHideFontColorBtn,i=t.isHideBackGroundColorBtn,a=t.customizeColorArr,c=t.customizeContainerStyle,s=t.customizeColorSelectAreaStyle,l=t.isUnderColorBlock,d=void 0!==l&&l,u=this.state,p=u.isShowTextColorSelectArea,f=u.isShowBgColorSelectArea,m=u.isFontBold,v=u.backgroundColor,g=a&&a.length>0?a:Z;return(0,w.jsxs)("div",{className:(0,h.iv)(P,c),children:[(p||f)&&(0,w.jsx)("div",{className:(0,h.iv)(k,f?{marginLeft:"6px"}:{},s),children:x()(g,(function(t,n){return(0,w.jsx)("div",{className:(0,h.iv)(C,{backgroundColor:t}),onClick:function(){e.onColorSelectAreaRadioClick(t)}},"textColor-".concat(n))}))}),(0,w.jsxs)("div",{className:(0,h.iv)(I(d)),children:[!r&&(0,w.jsx)("div",{className:(0,h.iv)(R),onClick:function(){e.setState({isFontBold:!m},(function(){e.state.isFontBold?n(e.state.boldValue):n("inherit")}
1))},children:m?(0,w.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/btn-toolbar-bold-h.svg",alt:"btn-toolbar"}):(0,w.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/btn-toolbar-bold-n.svg",alt:"btn-toolbar"})}),!o&&(0,w.jsx)("div",{className:(0,h.iv)(R),onClick:function(){e.onColorSelectClick("text")},children:p?(0,w.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/btn-toolbar-fontcolor-h.svg",alt:"btn-toolbar"}):(0,w.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/btn-toolbar-fontcolor-n.svg",alt:"btn-toolbar"})}),!i&&(0,w.jsx)("div",{className:(0,h.iv)(D,{backgroundColor:v}),onClick:function(){e.onColorSelectClick("bg")}})]})]})}}]),n}(p.Component),S=(0,f.ZP)(O),Z=["#D0021B","#EA1F62","#9B28B0","#3F51B5","#2296F3","#01BCD5","#009587","#4CAF4F","#FFEC3B","#FF6800","#FFFFFF","#333333"],P={zIndex:"199",height:"140px",width:"225px"},k={backgroundColor:y.E,border:"1px solid",boxShadow:b.xF,borderRadius:"2px",width:"225px",height:"76px",margin:"4px"},C={display:"inline-block",width:"24px",height:"24px",margin:"6px",border:".5px solid #E2E2E2",borderRadius:"2px",boxShadow:"0 2px 4px 0 ".concat((0,y.a3)(y.A,.5)),":hover":{borderColor:y.A}},I=function(e){return e?{backgroundColor:y.E,boxShadow:b.xF,borderRadius:"2px",width:"auto",height:"45px",margin:"0 8px 8px 8px",position:"absolute",top:"-50px"}:{backgroundColor:y.E,boxShadow:b.xF,borderRadius:"2px",width:"auto",height:"45px",margin:"0 8px 8px 8px",position:"absolute",bottom:"0"}},D={display:"inline-block",width:"30px",height:"30px",margin:"6px",border:"1px solid ".concat(y.H),borderRadius:"2px"},R={display:"inline-block",margin:"6px"},F=n(10221);var B=function(e){var t=e.intl,n=e.isBackStage,r=e.isMobile,o=e.type,i=e.isChangeCardStyle,a=e.onPickImage,c=e.onEditParse,s=e.onChangeText,l=e.onChangeDesc,d=e.nowIndex,p=e.customBgStyle,f=e.defaultImgUrl,g=e.link,x=e.imgUrl,y=e.editArea,b=e.nowEditStyle,j=e.toolBarPosition,O=e.title,Z=e.description,P=e.price,k=e.discountPrice,C=e.button,I=void 0===C?"".concat(t.formatMessage({id:"listFeed.pdCard.defaultBtnName",defaultMessage:"Buy now!"})):C,D=e.onChangeBtnName,R=e.onChangePrice,B=e.onChangeDiscountPrice,G=e.tempTitleStyle,$=e.tempDescriptionStyle,J=e.tempPriceStyle,Q=e.tempDiscountPriceStyle,X=e.tempButtonStyle,ee=e.setCardState,te=e.handleTextClick,ne=e.handleFocusOut,re=e.handleStyleChange;return(0,w.jsx)("div",{className:(0,h.iv)(N(!n&&!r)),"data-keycode":"".concat(e._id,"-").concat(d),children:(0,w.jsxs)("div",{className:(0,h.iv)(E(g,r)),children:[(0,w.jsxs)("div",{className:(0,h.iv)(z(f),p),children:[(0,w.jsx)("div",{className:(0,h.iv)(T(x),H(x,"locked"===o))}),!i&&n&&(0,w.jsx)(F.Z,{onPick:function(e){a(e,d),ee({editArea:""})},className:"".concat((0,h.iv)(v.Kw,M)),children:(0,w.jsx)("div",{style:{width:"100%",height:"100%"}})})]}),(0,w.jsxs)("div",{className:(0,h.iv)(U),children:[i&&0===d&&!u()(y)&&""!==y&&(0,w.jsx)(S,{type:y,isHideBackGroundColorBtn:"btn"!==y,nowEditStyle:b,customizeContainerStyle:K(j),onFontWeightClick:function(e){re("fontWeight",e)},onTextColorRadioClick:function(e){re("color",e)},onBgColorRadioClick:function(e){re("backgroundColor",e)}}),i||"title"!==y?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-title-").concat(d),className:(0,h.iv)(L(n,r,O),G),onClick:function(e){te(e,"title",Object.assign({},L(n,r,O),G))},children:n&&(u()(O)||""===O)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultTitle",defaultMessage:"Title"}):O}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-title-").concat(d,"-textarea"),onChange:function(e){s(e,d),c(e,d)},onBlur:ne,className:(0,h.iv)(L(n,r,O),q(O),G),defaultValue:O}),i||"desc"!==y?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-desc-").concat(d),className:(0,h.iv)(_(n,r,Z),$),onClick:function(e){te(e,"desc",Object.assign({},_(n,r,Z),$))},children:n&&(u()(Z)||""===Z)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultDesc",defaultMessage:"Description"}):Z}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-desc-").concat(d,"-textarea"),onChange:function(e){l(e,d),c(e,d)},onBlur:ne,className:(0,h.iv)(_(n,r,Z),q(Z),$),defaultValue:Z}),(0,w.jsxs)("div",{children:[i||"discountPrice"!==y?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(d),className:(0,h.iv)(A(n,k),Q),onClick:function(e){te(e,"discountPrice",Object.assign({},A(n,k),Q))},children:n&&(u()(k)||""===k)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultDiscountPrice",defaultMessage:"Discount"}):k}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(d,"-textarea"),onChange:function(e){B(e,d),c(e,d)},onBlur:ne,className:(0,h.iv)(A(n,k),q(k),Q),defaultValue:k}),i||"price"!==y?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-price-").concat(d),className:(0,h.iv)(W(n,P),J),onClick:function(e){te(e,"price",Object.assign({},W(n,P),J))},children:n&&(u()(P)||""===P)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultPrice",defaultMessage:"Price"}):P}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-price-").concat(d,"-textarea"),onChange:function(e){R(e,d),c(e,d)},onBlur:ne,className:(0,h.iv)(W(n,P),q(P),J),defaultValue:P})]})]}),(0,w.jsx)("div",{className:(0,h.iv)({padding:i||"btn"!==y?"0 12px 12px 12px":"0px 12px 9px 12px"}),children:i||"btn"!==y?(0,w.jsx)("button",{id:"pdcard-".concat(e._id,"-btn-").concat(d),className:(0,h.iv)(Y(n,r),X),onClick:function(e){n&&te(e,"btn",Object.assign({},Y(n,r),X))},children:I}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-btn-").concat(d,"-textarea"),onChange:function(e){D(e,d),c(e,d)},onBlur:ne,className:(0,h.iv)(Y(n,r),V,q(I),X),defaultValue:I})})]})})},N=function(e){return{padding:e?"1.1rem":".2rem"}},E=function(e,t){return{cursor:u()(e)||""===e?"default":"pointer",backgroundColor:"#FFFFFF",boxShadow:t?b.j:b.xF,borderRadius:"2px"}},z=function(e){return{background:"url('".concat(e,"') center center no-repeat #D6D6D6"),backgroundSize:"30%",overflow:"hidden"}},T=function(e){return{position:"relative",width:"100%",paddingTop:"56.25%",overflow:"hidden",backgroundImage:"url(".concat(e,")"),backgroundRepeat:"no-repeat",backgroundPosition:"50%",backgroundSize:"cover",backgroundColor:"#ddd"}},H=function(e,t){return{height:"100%",filter:"brightness(".concat(t?".5":"1",")"),opacity:e?1:0,":hover":{transform:"scale(1.3)"},transition:"all .5s"}},M={cursor:"pointer",position:"absolute",top:"0px",width:"95%",height:"calc(100% - 15.3rem)",margin:0},U={padding:"12px 12px 0 12px",height:"180px"},L=function(e,t,n){return e&&(u()(n)||0===n.length)?{maxHeight:t?"54px":"62px",fontSize:t?"20px":"24px",fontWeight:"bold !important",lineHeight:"1.3",color:"#BDBDBD !important",margin:"0px 0 4px 0",width:"100%",height:"30px",overflow:"hidden",resize:"none",border:"1px dashed #4A90E2"}:{maxHeight:t?"54px":"62px",fontSize:t?"20px":"24px",fontWeight:"bold",lineHeight:"1.3",color:"#333",margin:"0px 0 4px 0",width:"100%",overflow:"hidden",resize:"none",border:"1px solid transparent",":hover":e?{border:"1px dashed #4A90E2"}:{}}},_=function(e,t,n){return e&&(u()(n)||0===n.length)?{maxHeight:"52px",fontSize:t?"16px":"18px",lineHeight:"1.5",color:"#BDBDBD !important",marginBottom:"8px",width:"100%",height:"24px",overflow:"hidden",resize:"none",border:"1px dashed #4A90E2"}:{maxHeight:"52px",fontSize:t?"16px":"18px",lineHeight:"1.5",color:"#515151",marginBottom:"8px",width:"100%",overflow:"hidden",resize:"none",border:"1px dashed transparent",":hover":e?{border:"1px dashed #4A90E2"}:{}}},A=function(e,t){return e&&(u()(t)||0===t.length)?{fontSize:"24px",lineHeight:"1",margin:"0 8px 8px 0",fontWeight:"bold",color:"#BDBDBD !important",width:"100px",height:"25px",maxWidth:"100%",maxHeight:"25px",overflow:"hidden",resize:"none",display:"inline-block",wordBreak:"break-all",wordWrap:"break-word",border:"1px dashed #4A90E2"}:{fontSize:"24px",lineHeight:"1",margin:"0 8px 8px 0",fontWeight:"bold",color:"#FF6800",width:"auto",maxWidth:"100%",maxHeight:"25px",overflow:"hidden",resize:"none",border:"1px dashed transparent",display:"inline-block",wordBreak:"break-all",wordWrap:"break-word",":hover":e?{border:"1px dashed #4A90E2"}:{}}},W=function(e,t){return e&&(u()(t)||0===t.length)?{fontSize:"14px",lineHeight:"1",color:"#BDBDBD !important",margin:"0 8px 8px 0",textDecoration:"line-through",width:"60px",height:"15px",maxWidth:"100%",maxHeight:"15px",overflow:"hidden",resize:"none",display:"inline-block",border:"1px dashed #4A90E2"}:{fontSize:"14px",lineHeight:"1",color:"#FF6800",margin:"0 8px 8px 0",textDecoration:"line-through",width:"auto",maxWidth:"100%",maxHeight:"15px",overflow:"hidden",resize:"none",border:"1px dashed transparent",display:"inline-block","
1:hover":e?{border:"1px dashed #4A90E2"}:{}}},Y=function(e,t){return{cursor:"pointer",backgroundColor:"#FF6800",color:"#FFFFFF",width:"100%",height:t?"38px":"45px",fontSize:t?"16px":"18px",padding:"6px",letterSpacing:"0",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",border:"1px solid transparent",borderRadius:"2px",boxShadow:b.j,":hover":e?{border:"1px dashed #4A90E2"}:{}}},V={backgroundColor:"#FF6800",width:"calc(100% - 2px)",color:"#FFFFFF",fontSize:"18px",letterSpacing:"0",padding:"0px",overflow:"hidden",resize:"none",maxHeight:"43px",textAlign:"center",lineHeight:"240%"},q=function(e){return u()(e)||0===e.length?{width:"70%",overflow:"auto",border:"1px solid #FFFFFF",borderColor:"#4A90E2",transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#4A90E2"},":hover":{border:"1px solid #FFFFFF",borderColor:"#4A90E2"}}:{overflow:"auto",border:"1px solid #FFFFFF",borderColor:"#4A90E2",transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#4A90E2"},":hover":{border:"1px solid #FFFFFF",borderColor:"#4A90E2"}}},K=function(e){return{position:"absolute",top:"".concat(e-140,"px"),left:"40%"}};var G=function(e){var t=e.intl,n=e.isBackStage,r=e.isMobile,o=e.type,i=e.isChangeCardStyle,a=e.onPickImage,c=e.onEditParse,s=e.onChangeText,l=e.nowIndex,d=e.customBgStyle,p=e.defaultImgUrl,f=e.link,g=e.imgUrl,x=e.editArea,y=e.nowEditStyle,b=e.toolBarPosition,j=e.title,O=e.price,Z=e.discountPrice,P=e.button,k=void 0===P?"".concat(t.formatMessage({id:"listFeed.pdCard.defaultBtnName",defaultMessage:"Buy now!"})):P,C=e.onChangeBtnName,I=e.onChangePrice,D=e.onChangeDiscountPrice,R=e.tempTitleStyle,B=e.tempPriceStyle,N=e.tempDiscountPriceStyle,E=e.tempButtonStyle,z=e.setCardState,T=e.handleTextClick,H=e.handleFocusOut,M=e.handleStyleChange;return(0,w.jsx)("div",{className:(0,h.iv)($),"data-keycode":"".concat(e._id,"-").concat(l),children:(0,w.jsxs)("div",{className:(0,h.iv)(J(f,r)),children:[(0,w.jsxs)("div",{className:(0,h.iv)(Q(p),d),children:[(0,w.jsx)("div",{className:(0,h.iv)(X(g),ee(g,"locked"===o))}),!i&&n&&(0,w.jsx)(F.Z,{onPick:function(e){a(e,l),z({editArea:""})},className:"".concat((0,h.iv)(v.Kw,te)),children:(0,w.jsx)("div",{style:{width:"100%",height:"100%"}})})]}),(0,w.jsxs)("div",{className:(0,h.iv)(ne),children:[i&&0===l&&!u()(x)&&""!==x&&(0,w.jsx)(S,{type:x,isHideBackGroundColorBtn:"btn"!==x,nowEditStyle:y,customizeContainerStyle:le(b),onFontWeightClick:function(e){M("fontWeight","inherit"===e?"500":e)},onTextColorRadioClick:function(e){M("color",e)},onBgColorRadioClick:function(e){M("backgroundColor",e)}}),i||"title"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-title-").concat(l),className:(0,h.iv)(re(n,r,j),R),onClick:function(e){T(e,"title",Object.assign({},re(n,r,j),R))},children:n&&(u()(j)||""===j)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultTitle",defaultMessage:"Title"}):j}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-title-").concat(l,"-textarea"),onChange:function(e){s(e,l),c(e,l)},onBlur:H,className:(0,h.iv)(re(n,r,j),se(j),R),defaultValue:j}),(0,w.jsxs)("div",{children:[i||"discountPrice"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(l),className:(0,h.iv)(oe(n,r,Z),N),onClick:function(e){T(e,"discountPrice",Object.assign({},oe(n,r,Z),N))},children:n&&(u()(Z)||""===Z)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultDiscountPrice",defaultMessage:"Discount"}):Z}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(l,"-textarea"),onChange:function(e){D(e,l),c(e,l)},onBlur:H,className:(0,h.iv)(oe(n,r,Z),se(Z),N),defaultValue:Z}),i||"price"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-price-").concat(l),className:(0,h.iv)(ie(n,O),B),onClick:function(e){T(e,"price",Object.assign({},ie(n,O),B))},children:n&&(u()(O)||""===O)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultPrice",defaultMessage:"Price"}):O}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-price-").concat(l,"-textarea"),onChange:function(e){I(e,l),c(e,l)},onBlur:H,className:(0,h.iv)(ie(n,O),se(O),B),defaultValue:O})]})]}),(0,w.jsx)("div",{className:(0,h.iv)({height:"30px",padding:"0 12px 12px 12px"}),children:i||"btn"!==x?(0,w.jsx)("button",{id:"pdcard-".concat(e._id,"-btn-").concat(l),className:(0,h.iv)(ae(n),E),onClick:function(e){n&&T(e,"btn",Object.assign({},ae(n),E))},children:k}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-btn-").concat(l,"-textarea"),onChange:function(e){C(e,l),c(e,l)},onBlur:H,className:(0,h.iv)(ae(n),ce,se(k),E),defaultValue:k})})]})})},$={padding:".2rem"},J=function(e,t){return{cursor:u()(e)||""===e?"default":"pointer",backgroundColor:"#FFFFFF",boxShadow:t?b.j:b.xF,borderRadius:"2px"}},Q=function(e){return{background:"url('".concat(e,"') center center no-repeat #D6D6D6"),backgroundSize:"30%",overflow:"hidden"}},X=function(e){return{position:"relative",width:"100%",paddingTop:"100%",overflow:"hidden",backgroundImage:"url(".concat(e,")"),backgroundRepeat:"no-repeat",backgroundPosition:"50%",backgroundSize:"cover",backgroundColor:"#ddd"}},ee=function(e,t){return{height:"100%",filter:"brightness(".concat(t?".5":"1",")"),opacity:e?1:0,":hover":{transform:"scale(1.3)"},transition:"all .5s"}},te={cursor:"pointer",position:"absolute",top:"0px",width:"95%",height:"calc(100% - 11rem)",margin:0},ne={padding:"12px 12px 0 12px",height:"120px"},re=function(e,t,n){return e&&(u()(n)||0===n.length)?{maxHeight:t?"42px":"54px",fontSize:t?"16px":"20px",fontWeight:"bold",lineHeight:"1.3",color:"#BDBDBD !important",margin:"0px 0 4px 0",width:"100%",height:"27px",overflow:"hidden",resize:"none",border:"1px dashed #4A90E2"}:{maxHeight:t?"42px":"54px",fontSize:t?"16px":"20px",fontWeight:"bold",lineHeight:"1.3",color:"#333333",margin:"0px 0 4px 0",width:"100%",overflow:"hidden",resize:"none",border:"1px solid transparent",":hover":e?{border:"1px dashed #4A90E2"}:{}}},oe=function(e,t,n){return e&&(u()(n)||0===n.length)?{fontSize:t?"20px":"24px",lineHeight:"1",margin:"0 8px 8px 0",fontWeight:"500",color:"#BDBDBD !important",width:"100px",height:"26px",maxWidth:"100%",maxHeight:t?"22px":"26px",overflow:"hidden",resize:"none",display:"inline-block",wordBreak:"break-all",wordWrap:"break-word",border:"1px dashed #4A90E2"}:{fontSize:t?"20px":"24px",lineHeight:"1",margin:"0 8px 8px 0",fontWeight:"500",color:"#EA1F62",width:"auto",maxWidth:"100%",maxHeight:t?"22px":"26px",overflow:"hidden",resize:"none",border:"1px dashed transparent",display:"inline-block",wordBreak:"break-all",wordWrap:"break-word",":hover":e?{border:"1px dashed #4A90E2"}:{}}},ie=function(e,t){return e&&(u()(t)||0===t.length)?{fontSize:"14px",lineHeight:"1",color:"#BDBDBD !important",margin:"0 8px 8px 0",textDecoration:"line-through",width:"60px",height:"14px",maxWidth:"100%",maxHeight:"14px",overflow:"hidden",resize:"none",display:"inline-block",border:"1px dashed #4A90E2"}:{fontSize:"14px",lineHeight:"1",color:"#9B9B9B",margin:"0 8px 8px 0",textDecoration:"line-through",width:"auto",maxWidth:"100%",maxHeight:"14px",overflow:"hidden",resize:"none",border:"1px dashed transparent",display:"inline-block","
1:hover":e?{border:"1px dashed #4A90E2"}:{}}},ae=function(e){return{cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",height:"30px",padding:"4px 8px",fontSize:"14px",backgroundColor:"#EA1F62",color:"#FFFFFF",float:"right",letterSpacing:"0",border:"1px solid transparent",borderRadius:"2px",boxShadow:b.j,maxWidth:"calc(100% - 2px)",":hover":e?{border:"1px dashed #4A90E2"}:{}}},ce={padding:"0px 8px",resize:"none",width:"94%",height:"30px",lineHeight:"220%",textAlign:"right"},se=function(e){return u()(e)||0===e.length?{width:"70%",overflow:"auto",border:"1px solid #FFFFFF",borderColor:"#4A90E2",transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#4A90E2"},":hover":{border:"1px solid #FFFFFF",borderColor:"#4A90E2"}}:{overflow:"auto",border:"1px solid #FFFFFF",borderColor:"#4A90E2",transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#4A90E2"},":hover":{border:"1px solid #FFFFFF",borderColor:"#4A90E2"}}},le=function(e){return{position:"absolute",top:"".concat(e-140,"px"),left:"40%"}};var de=function(e){var t=e.intl,n=e.isBackStage,r=e.isMobile,o=e.type,i=e.isChangeCardStyle,a=e.onPickImage,c=e.onEditParse,s=e.onChangeText,l=e.onChangeDesc,d=e.nowIndex,p=e.defaultImgUrl,f=e.link,g=e.imgUrl,x=e.editArea,y=e.nowEditStyle,b=e.toolBarPosition,j=e.title,O=e.description,Z=e.price,P=e.discountPrice,k=e.button,C=void 0===k?"".concat(t.formatMessage({id:"listFeed.pdCard.defaultBtnName",defaultMessage:"Buy now!"})):k,I=e.onChangeBtnName,D=e.onChangePrice,R=e.onChangeDiscountPrice,B=e.tempTitleStyle,N=e.tempDescriptionStyle,E=e.tempPriceStyle,z=e.tempDiscountPriceStyle,T=e.tempButtonStyle,H=e.setCardState,M=e.handleTextClick,U=e.handleFocusOut,L=e.handleStyleChange;return(0,w.jsx)("div",{className:(0,h.iv)(ue),"data-keycode":"".concat(e._id,"-").concat(d),children:(0,w.jsxs)("div",{className:(0,h.iv)(pe(f,r)),children:[(0,w.jsxs)("div",{className:(0,h.iv)(fe(r)),children:[(0,w.jsxs)("div",{className:(0,h.iv)(he(p)),children:[(0,w.jsx)("div",{className:(0,h.iv)(me(g,"locked"===o))}),!i&&n&&(0,w.jsx)(F.Z,{onPick:function(e){a(e,d),H({editArea:""})},className:"".concat((0,h.iv)(v.Kw,ve)),children:(0,w.jsx)("div",{className:(0,h.iv)(ge)})})]}),r&&(0,w.jsxs)("div",{children:[i||"discountPrice"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(d),className:(0,h.iv)(we(n,r,P),z),onClick:function(e){M(e,"discountPrice",Object.assign({},we(n,r,P),z))},children:n&&(u()(P)||""===P)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultDiscountPrice",defaultMessage:"Discount"}):P}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(d,"-textarea"),onChange:function(e){R(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(we(n,r),Ze(P),z),defaultValue:P}),i||"price"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-price-").concat(d),className:(0,h.iv)(je(n,r,Z),E),onClick:function(e){M(e,"price",Object.assign({},je(n,r,Z),E))},children:n&&(u()(Z)||""===Z)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultPrice",defaultMessage:"Price"}):Z}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-price-").concat(d,"-textarea"),onChange:function(e){D(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(je(n,r),Ze(Z),E),defaultValue:Z})]})]}),(0,w.jsxs)("div",{className:(0,h.iv)(xe),children:[(0,w.jsxs)("div",{className:(0,h.iv)({height:r?"124px":"260px"}),children:[i&&0===d&&!u()(x)&&""!==x&&(0,w.jsx)(S,{type:x,isHideBackGroundColorBtn:"btn"!==x,nowEditStyle:y,isUnderColorBlock:!0,customizeContainerStyle:Pe(b),onFontWeightClick:function(e){L("fontWeight",e)},onTextColorRadioClick:function(e){L("color",e)},onBgColorRadioClick:function(e){L("backgroundColor",e)}}),i||"title"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-title-").concat(d),className:(0,h.iv)(ye(n,r,j),B),onClick:function(e){M(e,"title",Object.assign({},ye(n,r,j),B))},children:n&&(u()(j)||""===j)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultTitle",defaultMessage:"Title"}):j}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-title-").concat(d,"-textarea"),onChange:function(e){s(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(ye(n,r),Ze(j),B),defaultValue:j}),i||"desc"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-desc-").concat(d),className:(0,h.iv)(be(n,r,O),N),onClick:function(e){M(e,"desc",Object.assign({}
1,be(n,r,O),N))},children:n&&(u()(O)||""===O)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultDesc",defaultMessage:"Description"}):O}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-desc-").concat(d,"-textarea"),onChange:function(e){l(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(be(n,r),Ze(O),N),defaultValue:O}),!r&&(0,w.jsxs)("div",{children:[i||"discountPrice"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(d),className:(0,h.iv)(we(n,r,P),z),onClick:function(e){M(e,"discountPrice",Object.assign({},we(n,r,P),z))},children:n&&(u()(P)||""===P)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultDiscountPrice",defaultMessage:"Discount"}):P}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-discountPrice-").concat(d,"-textarea"),onChange:function(e){R(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(we(n,r),Ze(P),z),defaultValue:P}),i||"price"!==x?(0,w.jsx)("div",{id:"pdcard-".concat(e._id,"-price-").concat(d),className:(0,h.iv)(je(n,r,Z),E),onClick:function(e){M(e,"price",Object.assign({},je(n,r,Z),E))},children:n&&(u()(Z)||""===Z)?(0,w.jsx)(m.Z,{id:"listFeed.pdCard.defaultPrice",defaultMessage:"Price"}):Z}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-price-").concat(d,"-textarea"),onChange:function(e){D(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(je(n,r),Ze(Z),E),defaultValue:Z})]})]}),(0,w.jsx)("div",{className:(0,h.iv)(r?{}:{padding:i||"btn"!==x?"0 12px 12px 12px":"0px 12px 9px 12px"}),children:i||"btn"!==x?(0,w.jsx)("button",{id:"pdcard-".concat(e._id,"-btn-").concat(d),className:(0,h.iv)(Oe(n,r),T),onClick:function(e){n&&M(e,"btn",Object.assign({},Oe(n,r),T))},children:C}):(0,w.jsx)("textarea",{id:"pdcard-".concat(e._id,"-btn-").concat(d,"-textarea"),onChange:function(e){I(e,d),c(e,d)},onBlur:U,className:(0,h.iv)(Oe(n,r),Se,Ze(C),T),defaultValue:C})})]})]})})},ue={padding:".2rem"},pe=function(e,t){return{cursor:u()(e)||""===e?"default":"pointer",backgroundColor:"#FFFFFF",boxShadow:t?b.j:b.xF,borderRadius:"2px",padding:"10px"}},fe=function(e){return{display:"inline-block",verticalAlign:"top",width:e?"50%":"55%",margin:"0 .5rem 0 0"}},he=function(e){return{maxHeight:"340px",background:"url('".concat(e,"') center center no-repeat #D6D6D6"),backgroundSize:"30%",overflow:"hidden"}},me=function(e,t){return{position:"relative",width:"100%",paddingTop:"75%",overflow:"hidden",backgroundImage:"url(".concat(e,")"),backgroundRepeat:"no-repeat",backgroundPosition:"50%",backgroundSize:"cover",backgroundColor:"#ddd",filter:"brightness(".concat(t?".5":"1",")"),opacity:e?1:0,":hover":{transform:"scale(1.3)"},transition:"all .5s"}},ve={cursor:"pointer",position:"absolute",top:"0px",width:"53%",maxHeight:"340px",margin:"13px 0 0 0"},ge={cursor:"pointer",width:"100%",height:"340px"},xe={display:"inline-block",width:"40%",maxHeight:"340px",verticalAlign:"top",margin:"0 0 0 .5rem"},ye=function(e,t,n){return e&&(u()(n)||0===n.length)?{maxHeight:t?"48px":"64px",fontSize:t?"16px":"24px",fontWeight:"bold !important",lineHeight:"1.3",color:"#BDBDBD !important",margin:"0px 0 8px 0",width:"100%",height:"32px",overflow:"hidden",resize:"none",border:"1px dashed #4A90E2"}:{maxHeight:t?"48px":"64px",fontSize:t?"16px":"24px",fontWeight:"bold",lineHeight:"1.3",color:"#333",margin:"0px 0 8px 0",width:"100%",overflow:"hidden",resize:"none",border:"1px solid transparent",":hover":e?{border:"1px dashed #4A90E2"}:{}}},be=function(e,t,n){return e&&(u()(n)||0===n.length)?{maxHeight:t?"80px":"110px",fontSize:t?"14px":"18px",lineHeight:"1.5",color:"#BDBDBD !important",marginBottom:"8px",width:"100%",height:"55px",overflow:"hidden",resize:"none",border:"1px dashed #4A90E2"}:{maxHeight:t?"80px":"110px",fontSize:t?"14px":"18px",lineHeight:"1.5",color:"#515151",marginBottom:"8px",width:"100%",overflow:"hidden",resize:"none",border:"1px dashed transparent",":hover":e?{border:"1px dashed #4A90E2"}:{}}},we=function(e,t,n){return e&&(u()(n)||0===n.length)?{fontSize:t?"20px":"24px",lineHeight:"1",margin:"8px 8px 8px 0",fontWeight:"500",color:"#BDBDBD !important",width:"100px",height:"27px",maxWidth:"100%",maxHeight:t?"24px":"27px",overflow:"hidden",resize:"none",display:"inline-block",wordBreak:"break-all",wordWrap:"break-word",border:"1px dashed #4A90E2"}:{fontSize:t?"20px":"24px",lineHeight:"1",margin:"8px 8px 8px 0",fontWeight:"500",color:"#D0021B",width:"auto",maxWidth:"100%",maxHeight:t?"24px":"27px",overflow:"hidden",resize:"none",border:"1px dashed transparent",display:"inline-block",wordBreak:"break-all",wordWrap:"break-word",":hover":e?{border:"1px dashed #4A90E2"}:{}}},je=function(e,t,n){return e&&(u()(n)||0===n.length)?{fontSize:"14px",lineHeight:"1",color:"#BDBDBD !important",margin:"0 8px 8px 0",textDecoration:"line-through",width:"60px",height:"17px",maxWidth:"100%",maxHeight:"17px",overflow:"hidden",resize:"none",display:"inline-block",border:"1px dashed #4A90E2"}:{fontSize:"14px",lineHeight:"1",color:"#9B9B9B",margin:"0 8px 8px 0",textDecoration:"line-through",width:"auto",maxWidth:"100%",maxHeight:"17px",overflow:"hidden",resize:"none",border:"1px dashed transparent",display:"inline-block","
1:hover":e?{border:"1px dashed #4A90E2"}:{}}},Oe=function(e,t){return{cursor:"pointer",backgroundColor:"#D0021B",color:"#FFFFFF",width:"auto",height:"42px",maxWidth:"110%",fontSize:t?"14px":"16px",padding:t?"6px 10px":"10px 24px",letterSpacing:"0",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",border:"1px solid transparent",borderRadius:"2px",boxShadow:b.j,":hover":e?{border:"1px dashed #4A90E2"}:{}}},Se={padding:"0px",resize:"none",height:"40px",textAlign:"center",lineHeight:"240%",boxSizing:"border-box",width:"100%"},Ze=function(e){return u()(e)||0===e.length?{width:"70%",overflow:"auto",border:"1px solid #FFFFFF",borderColor:"#4A90E2",transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#4A90E2"},":hover":{border:"1px solid #FFFFFF",borderColor:"#4A90E2"}}:{overflow:"auto",border:"1px solid #FFFFFF",borderColor:"#4A90E2",transition:"border-color 0.3s",outline:"none",":focus":{borderColor:"#4A90E2"},":hover":{border:"1px solid #FFFFFF",borderColor:"#4A90E2"}}},Pe=function(e){return{position:"absolute",top:"".concat(e+20,"px"),left:"80%"}};function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var De=function(e){(0,a.Z)(n,e);var t=Ie(n);function n(e){var o;return(0,r.Z)(this,n),o=t.call(this,e),(0,l.Z)((0,i.Z)(o),"setCardState",(function(e,t){o.setState(Ce({},e),(function(){"function"===typeof t&&t()}))})),(0,l.Z)((0,i.Z)(o),"handleTextClick",(function(e,t,n){var r=o.props,i=r.isChangeCardStyle,a=r.nowIndex,c=r.onChangeState;o.state.isBackStage&&(c(2,a),i?o.setState({editArea:t,toolBarPosition:e.target.offsetTop,nowEditStyle:n}):o.setState({editArea:t},(function(){document.getElementById("pdcard-".concat(o.props._id,"-").concat(t,"-").concat(o.props.nowIndex,"-textarea")).focus()})))})),(0,l.Z)((0,i.Z)(o),"handleFocusOut",(function(){var e=o.props,t=e.nowIndex,n=e.onChangeState;o.setState({editArea:""}),n(0,t)})),(0,l.Z)((0,i.Z)(o),"handleStyleChange",(function(e,t){var n=o.state.editArea,r={};r[e]=t,"title"===n?o.setState({tempTitleStyle:Object.assign({},o.state.tempTitleStyle,r)}):"desc"===n?o.setState({tempDescriptionStyle:Object.assign({},o.state.tempDescriptionStyle,r)}):"discountPrice"===n?o.setState({tempDiscountPriceStyle:Object.assign({},o.state.tempDiscountPriceStyle,r)}):"price"===n?o.setState({tempPriceStyle:Object.assign({},o.state.tempPriceStyle,r)}):"btn"===n&&o.setState({tempButtonStyle:Object.assign({},o.state.tempButtonStyle,r)})})),(0,l.Z)((0,i.Z)(o),"objectCompareFumc",(function(e,t){if("undefined"===typeof e&&"undefined"!==typeof t||"undefined"===typeof t&&"undefined"!==typeof e)return!1;for(var n in e){if(e.hasOwnProperty(n)!==t.hasOwnProperty(n))return!1;switch(typeof e[n]){case"object":if(!o.objectCompareFumc(e[n],t[n]))return!1;break;case"function":if("undefined"===typeof t[n]||"compare"!==n&&e[n].toString()!==t[n].toString())return!1;break;default:if(e[n]!==t[n])return!1}}for(var r in t)if("undefined"===e[r])return!1;return!0})),o.state={isBackStage:o.props.query.isEditor,editArea:"",tempTitleStyle:o.props.titleStyle,tempDescriptionStyle:o.props.descriptionStyle,tempPriceStyle:o.props.priceStyle,tempDiscountPriceStyle:o.props.discountPriceStyle,tempButtonStyle:o.props.buttonStyle,toolBarPosition:0,nowEditStyle:{},isMobile:o.props.query.isMobile},o}return(0,o.Z)(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props.page.saveCardChange,n=this.props,r=n.nowIndex,o=n.currentIndex;t===e.page.saveCardChange||u()(e.page.saveCardChange)||r===o&&(this.props.applyChange({titleStyle:this.state.tempTitleStyle,descriptionStyle:this.state.tempDescriptionStyle,priceStyle:this.state.tempPriceStyle,discountPriceStyle:this.state.tempDiscountPriceStyle,buttonStyle:this.state.tempButtonStyle}),this.setState({editArea:""})),this.objectCompareFumc(this.props.titleStyle,e.titleStyle)||this.setState({tempTitleStyle:e.titleStyle}),this.objectCompareFumc(this.props.descriptionStyle,e.descriptionStyle)||this.setState({tempDescriptionStyle:e.descriptionStyle}),this.objectCompareFumc(this.props.priceStyle,e.priceStyle)||this.setState({tempPriceStyle:e.priceStyle}),this.objectCompareFumc(this.props.discountPriceStyle,e.discountPriceStyle)||this.setState({tempDiscountPriceStyle:e.discountPriceStyle}),this.objectCompareFumc(this.props.buttonStyle,e.buttonStyle)||this.setState({tempButtonStyle:e.buttonStyle})}},{key:"render",value:function(){var e=this.props.pdCardTemplate;return 3===e?(0,w.jsx)(de,Ce(Ce(Ce({},this.props),this.state),{},{intl:this.props.intl,setCardState:this.setCardState,handleTextClick:this.handleTextClick,handleFocusOut:this.handleFocusOut,handleStyleChange:this.handleStyleChange})):2===e?(0,w.jsx)(G,Ce(Ce(Ce({},this.props),this.state),{},{intl:this.props.intl,setCardState:this.setCardState,handleTextClick:this.handleTextClick,handleFocusOut:this.handleFocusOut,handleStyleChange:this.handleStyleChange})):(0,w.jsx)(B,Ce(Ce(Ce({},this.props),this.state),{},{intl:this.props.intl,setCardState:this.setCardState,handleTextClick:this.handleTextClick,handleFocusOut:this.handleFocusOut,handleStyleChange:this.handleStyleChange}))}}]),n}(p.PureComponent),Re=(0,f.ZP)(De)},89398:function(e,t,n){"use strict";var r=n(92777),o=n(82262),i=n(45959),a=n(63553),c=n(37247),s=n(67294),l=n(73935),d=n(26113),u=n(36966),p=n(2475),f=n(85893);function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.Z)(e);if(t){var o=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,a.Z)(this,n)}}var m=function(e){(0,i.Z)(n,e);var t=h(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}
1return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.props.disableScroll&&(document.body.style.overflow="hidden")}},{key:"componentWillUnmount",value:function(){this.props.disableScroll&&(document.body.style.overflow="visible")}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.onClickOutSide,r=e.noMask,o=void 0!==r&&r,i=e.innerClass,a=void 0===i?"":i,c=e.innerStyle,s=e.popupStyle,h=e.maskStyle,m=e.targetId,x=void 0===m?"dialog_portal":m;return l.createPortal((0,f.jsxs)("div",{className:(0,d.iv)(p.Kw,!o&&v,s),children:[!o&&(0,f.jsx)("div",{className:(0,d.iv)(u._4,u.sS,h),onClick:n}),(0,f.jsx)("div",{className:"".concat((0,d.iv)(g,c)," ").concat(a),children:t})]}),document.getElementById(x))}}]),n}(s.Component);t.Z=m;var v={position:"fixed",top:0,left:0,right:0,bottom:0,height:"100%",overflowY:"auto"},g={position:"relative",background:"white",margin:"1rem"}},24907:function(e,t,n){"use strict";var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(67294),u=n(26113),p=n(15303),f=n(85893);function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var m=function(e){(0,a.Z)(n,e);var t=h(n);function n(){var e;(0,r.Z)(this,n);for(var o=arguments.length,a=new Array(o),c=0;c<o;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a)),(0,l.Z)((0,i.Z)(e),"onFrameLoad",(function(){var t=e.props,n=t.data,r=t.center,o=t.onLoad,i=t.minHeight;e.iframe.contentWindow.postMessage({html:n,center:r},"https://utility.fevercdn.com"),(0,p.iframeResizer)(i?{minHeight:i}:{},e.iframe),o()})),e}return(0,o.Z)(n,[{key:"componentWillUnmount",value:function(){this.iframe.iFrameResizer&&this.iframe.iFrameResizer.close()}},{key:"render",value:function(){var e=this,t=this.props.customStyle,n=encodeURIComponent(window.location.href);return(0,f.jsx)("iframe",{title:"embedScript",ref:function(t){return e.iframe=t},onLoad:this.onFrameLoad,src:"https://utility.fevercdn.com/html/embed.html?referrer=".concat(n),scrolling:"yes",allowTransparency:"true",allowFullScreen:"allowFullScreen",seamless:"seamless",frameBorder:"0",className:(0,u.iv)({width:"100%",height:"100%"},t)})}}]),n}(d.Component);t.Z=m},73664:function(e,t,n){"use strict";var r=n(50029),o=n(87794),i=n.n(o),a=(n(67294),n(26113)),c=n(74806),s=n(61226),l=n(7557),d=n.n(l),u=n(78438),p=n(84228),f=n(68250),h=n(85893);t.Z=(0,c.ZP)((function(e){var t=e.intl,n=e.enableLogoutBtn,o=void 0!==n&&n,c=e.enterPrizeLogOutUrl,l=void 0===c?"":c;function f(){return g.apply(this,arguments)}function g(){return(g=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.gd)();case 2:l?window.location.href=l.endsWith("=")?"".concat(l).concat(encodeURIComponent(window.location.href)):l:window.location.reload();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,h.jsx)(p.Z,{isActive:!0,children:function(e){var n=e.pageYOffset,r=e.isScrollUp,i=e.reachBottom;return(0,h.jsxs)("div",{className:(0,a.iv)(v(i||!r&&n>0)),children:[o&&(0,h.jsx)("button",{className:(0,a.iv)(m),onClick:f,children:t.formatMessage({id:"btn.logout",defaultMessage:"Logout"})}),(0,h.jsx)("img",{src:"https://assets.fevercdn.com/nc/icons/icon_BackToTop.svg",className:(0,a.iv)(s.yY),width:40,height:40,onClick:function(){return d().toY(0)},alt:"icon_BackToTop"})]})}})}));var m={border:"none",backgroundColor:"".concat(f.J),color:f.E,borderRadius:50,cursor:"pointer",marginRight:"8px",padding:"10px 24px"},v=function(e){return{position:"fixed",right:"10px",bottom:"10px",zIndex:199,":hover":{opacity:1,transition:"opacity .2s linear"},transition:"opacity .5s linear",visibility:e?"visible":"hidden",opacity:e?.8:0,display:"flex",alignItems:"center"}}},84228:function(e,t,n){"use strict";var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(67294),u=n(23493),p=n.n(u);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var v=function(e){(0,a.Z)(n,e);var t=m(n);function n(e){var o;return(0,r.Z)(this,n),o=t.call(this,e),(0,l.Z)((0,i.Z)(o),"addScrollListener",(function(){window.addEventListener("scroll",o.throttledHandleScroll,{passive:!0})})),(0,l.Z)((0,i.Z)(o),"removeScrollListener",(function(){window.removeEventListener("scroll",o.throttledHandleScroll,{passive:!0})})),(0,l.Z)((0,i.Z)(o),"handleScroll",(function(){var e=window.pageYOffset;o.previousScroll=o.previousScroll||0,o.previousScroll>e?o.setState({isScrollUp:!0,pageYOffset:e}):o.setState({isScrollUp:!1,pageYOffset:e}),document.body.offsetHeight-(window.innerHeight+window.scrollY)<100?o.setState({reachBottom:!0}):o.setState({reachBottom:!1}),o.previousScroll=e})),(0,l.Z)((0,i.Z)(o),"throttledHandleScroll",o.handleScroll),o.state={reachBottom:!1,isScrollUp:!0,pageYOffset:0},e.shouldThrottle&&(o.throttledHandleScroll=p()(o.handleScroll,100)),o}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){var e=this.props.isActive;e&&(this.setState((function(){return{pageYOffset:window.pageYOffset}})),e&&this.addScrollListener())}},{key:"componentDidUpdate",value:function(e){var t=this.props.shouldThrottle;e.shouldThrottle!==t&&(this.throttledHandleScroll=t?p()(this.handleScroll,100):this.handleScroll)}},{key:"componentWillUnmount",value:function(){this.removeScrollListener()}},{key:"render",value:function(){return this.props.children(h(h({},this.state),{},{addScrollListener:this.addScrollListener,removeScrollListener:this.removeScrollListener}))}}]),n}(d.Component);t.Z=v},9116:function(e,t,n){"use strict";n(67294);var r=n(26113),o=n(67472),i=n(92415),a=n.n(i),c=n(68250),s=n(89392),l=n(2475),d=n(85893);function u(e){var t=a()(e);return t?"youtube"===t.type?"https://www.youtube.com/embed/".concat(t.src,"?rel=0&amp;controls=0&amp;showinfo=0"):"https://www.facebook.com/plugins/video.php?href=".concat(encodeURIComponent(e),"&width=auto&height=280"):""}t.Z=function(e){var t=e.url;return(0,d.jsx)("div",{className:(0,r.iv)(s.nC,s.gJ),style:{width:"100%"},children:(0,d.jsx)("div",{className:(0,r.iv)(s.kQ,l.Kw,{background:c.I}),children:(0,d.jsx)(o.Z,{url:u(t)})})})}},97674:function(e,t,n){"use strict";var r=n(59499),o=(n(67294),n(26113)),i=n(52654),a=n(78773),c=n(47940),s=n(2475),l=n(55869),d=n(8521),u=n(85893);var p=function(e){var t,n="> div:nth-child(".concat(e,") ~ div ");return{margin:"1rem 1rem 2rem 1rem","> div":(t={},(0,r.Z)(t,n,{display:"none"}),(0,r.Z)(t,"@media(max-width: 480px)",{padding:"0 35px","> div ~ div ":{display:"none"}}),t)}};t.Z=function(e){var t=e.index,n=e.data,r=e.layout,f=e.customStyle,h=(0,c.i)({layout:r}),m=(0,l.Gn)({data:n,slidesToShow:h});return(0,u.jsx)("div",{className:(0,o.iv)(p(h),s.Kw,f),children:(0,u.jsx)("div",{className:(0,o.iv)(m,s.Kw),children:n.length>0&&n.map((function(e,n){var r=e.srcUrl,c=e.title;return(0,u.jsx)("div",{className:(0,o.iv)({flex:1}),children:(0,u.jsx)(a.Z,{disabled:!0,href:r,target:"_blank",children:(0,u.jsx)(i.Z,{customBgStyle:(0,o.iv)(d.A),title:c,imgUrl:"",defaultImgUrl:"https://assets.fevercdn.com/nc/icons/pic.svg"})})},"carousel".concat(t,"-").concat(n))}))})})}},45374:function(e,t,n){"use strict";var r=n(59499),o=n(4730),i=(n(67294),n(26113)),a=n(8521),c=n(85893),s=["height","mbHeight","holderStyle"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?l(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u=function(e,t){return d({paddingTop:e},t?{"@media(max-width: 480px)":{paddingTop:t}}:{})};t.Z=function(e){var t=e.height,n=void 0===t?0:t,r=e.mbHeight,l=void 0===r?0:r,p=e.holderStyle,f=(0,o.Z)(e,s);return(0,c.jsx)("div",d({className:(0,i.iv)(u(n,l),a.A,p)},f))}},1549:function(e,t,n){"use strict";var r=n(92777),o=n(82262),i=n(10748),a=n(45959),c=n(63553),s=n(37247),l=n(59499),d=n(67294),u=n(23279),p=n.n(u),f=n(85893);function h(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.Z)(e);if(t){var o=(0,s.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.Z)(this,n)}}var m=function(e){(0,a.Z)(n,e);var t=h(n);function n(){var e;(0,r.Z)(this,n);for(var o=arguments.length,a=new Array(o),c=0;c<o;c++)a[c]=arguments[c];return e=t.call.apply(t,[this].concat(a)),(0,l.Z)((0,i.Z)(e),"footer",d.createRef()),(0,l.Z)((0,i.Z)(e),"resizeFBFanpage",p()((function(){var t=e.footer.current;if(t){var n=e.props.query,r=n.isEditor,o=n.isMobile,i="src";r||(i=o?"data-msrc":"data-src"),Array.from(t.querySelectorAll("iframe[".concat(i,'*="www.facebook.com"]'))).forEach((function(e){var t=e.parentElement.offsetWidth,n=e.style.width?Math.round(e.offsetWidth):Math.min(t,500),o="src"===i?e.src:e.dataset.src,a=/\bwidth=\d+/.test(o)?o.replace(/\bwidth=\d+/,"width=".concat(n)):o.replace(/\?/,"?width=".concat(n,"&"));e.style.width="".concat(n,"px"),r&&v(e),e.setAttribute(i,a)}))}}),100)),e}return(0,o.Z)(n,[{key:"componentDidMount",value:function(){this.resizeFBFanpage()}},{key:"componentDidUpdate",value:function(){this.resizeFBFanpage()}},{key:"render",value:function(){return(0,f.jsx)("footer",{ref:this.footer,children:this.props.children})}}]),n}(d.Component);function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"function"===typeof e.stop?e.stop():e.document&&"function"===typeof e.document.execCommand&&e.document.execCommand("Stop")}t.Z=m},2558:function(e,t,n){"use strict";n.d(t,{Mz:function(){return u}});var r,o=n(59499),i="feversocial.com",a="zines.cc",c="dev.feversocial.com",s="dev.zines.cc",l=[i,a,c,s],d=(r={},(0,o.Z)(r,i,i),(0,o.Z)(r,a,i),(0,o.Z)(r,c,c),(0,o.Z)(r,s,c),r);function u(e){return-1===l.indexOf(e)?e:d[e]}},2206:function(e,t,n){"use strict";var r=n(59499),o=n(53316),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=i()((function(e){switch(e){case 1:return{defaultStyle:{buttonStyle:{backgroundColor:"#FF6800",color:"#FFF"}},placeholders:s};case 2:return{defaultStyle:{buttonStyle:{backgroundColor:"#EA1F62",color:"#FFF"}},placeholders:s};case 3:case 4:default:return{defaultStyle:{},placeholders:s};case 5:return{defaultStyle:{subtitleStyle:{color:"#FFF"},titleStyle:{color:"#FFF"},descriptionStyle:{color:"#FFF"},buttonStyle:{backgroundColor:"#FFF",color:"#000",isYinCravedBtn:!0}},placeholders:c(c({},s),{},{buttonPH:{id:"infocard.default_val.read_more",defaultMessage:"Read More"}})};case 6:return{defaultStyle:{labelStyle:{backgroundColor:"#FFF",color:"#000"},buttonStyle:{backgroundColor:"#000",color:"#FFF"}},placeholders:c(c({},s),{},{buttonPH:{id:"infocard.default_val.read_more",defaultMessage:"Read More"}})};case 8:return{defaultStyle:{subtitleStyle:{color:"#66CCFF"},titleStyle:{color:"#ffffff"},descriptionStyle:{color:"#DBDBDB"},buttonStyle:{backgroundColor:"#0071ff",color:"#FFF"}},placeholders:c(c({},s),{},{buttonPH:{id:"infocard.default_val.read_more",defaultMessage:"Read More"}})};case 9:return{defaultStyle:{subtitleStyle:{color:"#ECECEC"},titleStyle:{color:"#ffffff"},descriptionStyle:{color:"#DBDBDB"},buttonStyle:{backgroundColor:"transparent",color:"#FFF"}},placeholders:c(c({},s),{},{buttonPH:{id:"infocard.default_val.read_more",defaultMessage:"Read More"}})};case 10:return{defaultStyle:{subtitleStyle:{color:"#666666"},titleStyle:{color:"#333333"},descriptionStyle:{color:"#666666"},buttonStyle:{backgroundColor:"#000",color:"#FFF"}},placeholders:c(c({},s),{},{buttonPH:{id:"infocard.default_val.read_more",defaultMessage:"Read More"}})}}}));var s={labelPH:{id:"listFeed.pdCard.defaultLabel",defaultMessage:"Label"},titlePH:{id:"listFeed.pdCard.defaultTitle",defaultMessage:"Title"},subtitlePH:{id:"listFeed.pdCard.defaultSubTitle",defaultMessage:"Subtitle"},descPH:{id:"listFeed.pdCard.defaultDesc",defaultMessage:"Description"},discountPricePH:{id:"listFeed.pdCard.defaultDiscountPrice",defaultMessage:"Sale price"},pricePH:{id:"listFeed.pdCard.defaultPrice",defaultMessage:"Regular price"},buttonPH:{id:"listFeed.pdCard.defaultBtnName",defaultMessage:"Buy now!"},authorPH:{id:"listFeed.pdCard.defaultAuthor",defaultMessage:"Author"}}},51138:function(e,t,n){"use strict";
1var r=n(59499),o=n(53316),i=n.n(o),a=n(66671);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l={speed:500,autoplaySpeed:5e3,slidesToScroll:1,swipeToSlide:!0},d={compact:[{min:0,n:2},{min:768,n:3},{min:1024,n:4},{min:1600,n:5},{min:2200,n:6}],standard:[{min:0,n:1},{min:480,n:2},{min:1024,n:3},{min:1600,n:4},{min:2200,n:5}],large:[{min:0,n:1},{min:900,n:2},{min:1600,n:3}],compact_template4_small:[{min:0,n:2},{min:768,n:3},{min:1600,n:4}],compact_template4:[{min:0,n:2},{min:768,n:3},{min:1600,n:4}]},u={compact:[{min:0,n:2.1},{min:560,n:3},{min:768,n:4},{min:1024,n:5},{min:1536,n:6}],standard:[{min:0,n:1.6},{min:560,n:2},{min:768,n:3},{min:1200,n:4},{min:1536,n:5}],large:[{min:0,n:1.2},{min:768,n:2},{min:1300,n:3}],compact_template4_small:[{min:0,n:2.1},{min:768,n:3},{min:1024,n:4}],compact_template4:[{min:0,n:2.1},{min:480,n:3},{min:768,n:4},{min:1024,n:5}]};function p(e,t){Array.isArray(e)&&e.forEach((function(e){e.breakpoint=f(e.breakpoint,t)}))}function f(e,t){return t<1?Math.floor(e/t):e}t.Z=i()((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0,h="client"===e,m={infinite:h,autoplay:h,draggable:h,centerMode:!1,variableWidth:!1};function v(){var e=h?"18px":"66px";return(0,r.Z)({margin:"".concat(e," 8px")},"@media(max-width: ".concat(f(568,n),"px)"),{margin:"".concat(e," 4px")})}var g="rwd"===i,x=g?d:u,y=g?1:n;function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=t[e]||t.standard,r=n[n.length-1].n,o=[],i=n.length-2;i>=0;i--){var a=n[i].n;o.push({breakpoint:n[i+1].min,settings:{slidesToShow:a}})}return{baseSlidesToShow:r,responsive:o}}var w,j=b(c,x),O=j.baseSlidesToShow,S=j.responsive;if(g&&S.length>0){var Z="two"===o?2:1;S[S.length-1].settings.slidesToShow=Z}switch(t){case 1:case 2:case 5:case 6:case 8:case 9:case 10:w={slider:s(s(s({},l),m),{},{slidesToShow:O,dots:!0,responsive:S}),styles:{margins:v()}};break;case 3:case 7:w={slider:s(s(s({},l),m),{},{arrows:!0,slidesToShow:O,dots:!0,responsive:S}),styles:{margins:v()}};break;case 4:var P=n===a.Z.normal,k="compact"===c?P?"compact_template4_small":"compact_template4":c,C=b(k,x),I=C.baseSlidesToShow,D=C.responsive;w={slider:s(s(s({},l),m),{},{arrows:!0,slidesToShow:I,dots:!0,responsive:D}),styles:{margins:v()}};break;default:w={slider:s(s(s({},l),m),{},{slidesToShow:3,slidesToScroll:3}),styles:{margins:{margin:"10px 8px"}}}}if(p(w.slider.responsive,y),"rwd"===i){var R=f(568,y);w.styles.margins=(0,r.Z)({margin:"6px"},"@media(max-width: ".concat(R,"px)"),{margin:"6px 4px"})}return w}))},12980:function(e,t,n){"use strict";function r(e){switch(e){case 1:case 2:case 3:case 5:case 6:case 8:case 9:case 10:return"slider";default:return"rwd"}}n.d(t,{Z:function(){return r}})},92056:function(e,t,n){"use strict";n.d(t,{H3:function(){return i},Yu:function(){return r},q0:function(){return c},tC:function(){return o},tZ:function(){return a}});var r="@feverevent/height-resize",o="@feverevent/scroll-into-view",i="@feverevent/parent-redirect",a="@feverevent/open-popup",c="@feverevent/is-zines-embedded"},31285:function(e,t,n){"use strict";n.d(t,{Z:function(){return on}});var r=n(45217),o=n(14416),i=n(54956),a=n(59499),c=n(67294),s=n(16801),l=n(58229),d=n(83141),u=n(98944),p=n(92777),f=n(82262),h=n(10748),m=n(45959),v=n(63553),g=n(37247),x=n(26113),y=n(99668),b=n(44012),w=n(54490),j=n(85893);function O(e){var t,n=e.no,r=e.stepOne,o=void 0===r?{}:r,i=e.stepTwo,a=void 0===i?{}:i,c=e.isNewPromotion,s=(0,j.jsx)(b.Z,{id:"info.date.event_dates",defaultMessage:"Event: "}),l="thumbup";switch(n){case 9:s=(0,j.jsx)(b.Z,{id:"info.date.register_dates",defaultMessage:"Register: "}),t=(0,j.jsx)(b.Z,{id:"info.date.share_dates",defaultMessage:"Share: "}),l="share";break;case 17:s=(0,j.jsx)(b.Z,{id:"info.date.image_dates",defaultMessage:"Image: "}),t=(0,j.jsx)(b.Z,{id:"info.date.vote_dates",defaultMessage:"Vote: "});break;case 22:s=(0,j.jsx)(b.Z,{id:"info.date.video_dates",defaultMessage:"Video: "}),t=(0,j.jsx)(b.Z,{id:"info.date.vote_dates",defaultMessage:"Vote: "});break;case 31:s=(0,j.jsx)(b.Z,{id:"info.date.register_dates",defaultMessage:"Register: "}),t=(0,j.jsx)(b.Z,{id:"info.date.hashtag_dates",defaultMessage:"Hashtag: "}),l="hashtag"}var d=[];if(void 0!==s){var u=o.start,p=o.end,f=c?{start:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(w.Ji,{value:new Date(u),year:"numeric",month:"short",day:"numeric"})," ",(0,y.mu)(u,"HH:mm")]}),end:(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(w.Ji,{value:new Date(p),year:"numeric",month:"short",day:"numeric"})," ",(0,y.mu)(p,"HH:mm")]})}:{start:(0,j.jsx)(w.Ji,{value:new Date(u),year:"numeric",month:"short",day:"numeric"}),end:(0,j.jsx)(w.Ji,{value:new Date(p),year:"numeric",month:"short",day:"numeric"})},h=""===u||""===p?(0,j.jsx)(b.Z,{id:"info.date.not_set_yet",defaultMessage:"Not Set Yet"}):(0,j.jsxs)("div",{children:[f.start," ~ ",f.end]});d.push({icon:"https://assets.fevercdn.com/nc/icons/icon_time.svg",text:(0,j.jsxs)("span",{children:[s,h]})})}if(void 0!==t){var m=a.start,v=a.end,g={start:(0,j.jsx)(w.Ji,{value:new Date(m),year:"numeric",month:"short",day:"numeric"}),end:(0,j.jsx)(w.Ji,{value:new Date(v),year:"numeric",month:"short",day:"numeric"})},x=""===m||""===v?(0,j.jsx)(b.Z,{id:"info.date.not_set_yet",defaultMessage:"Not Set Yet"}):(0,j.jsxs)("div",{children:[g.start," ~ ",g.end]});d.push({icon:"https://assets.fevercdn.com/nc/icons/icon_".concat(l,".svg"),text:(0,j.jsxs)("span",{children:[t,x]})})}return d}function S(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var o=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,v.Z)(this,n)}}var Z=function(e){(0,m.Z)(n,e);var t=S(n);function n(){var e;(0,p.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,a.Z)((0,h.Z)(e),"state",{data:""}),e}
1return(0,f.Z)(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"componentDidUpdate",value:function(e){!e.newPromotionInfo&&this.props.newPromotionInfo&&this.init()}},{key:"init",value:function(){var e,t=this.props,n=t.promoUUID,r=t.newPromotionInfo,o=t.newSecondaryPromotionInfo,i=t.actions;Boolean(n)&&Boolean(r)&&Boolean(i)&&"function"===typeof i.initPromoJoinCount&&this.props.actions.initPromoJoinCount([n,null===o||void 0===o||null===(e=o.promo)||void 0===e?void 0:e.uuid].filter((function(e){return e})))}},{key:"getInfoState",value:function(){var e=this.props,t=e.infoType,n=e.promoUUID,r=e.newPromotionInfo,o=e.promoState;if(Boolean(n)&&r){var i=r.promoSetting,a=(i=void 0===i?{}:i).Promotions,c=(a=void 0===a?{}:a).startDate,s=a.endDate;if("state"===t){var l,d=o.hasInitPromoJoinCount,u=o.promoUUIDsMappingJoinCount;return d?function(e){var t=e.restDays,n=e.participants,r=e.votes,o=[];return"undefined"!==typeof t&&o.push(Object.assign({},{icon:"https://assets.fevercdn.com/nc/icons/icon_alertDays.svg"},{text:(0,j.jsx)(b.Z,{id:"info.state.days_to_go",values:{restDays:t}})})),"undefined"!==typeof n&&o.push(Object.assign({},{icon:"https://assets.fevercdn.com/nc/icons/icon_partiPeople.svg"},{text:(0,j.jsx)(b.Z,{id:"info.state.participants",values:{participants:n}})})),"undefined"!==typeof r&&o.push(Object.assign({},{icon:"https://assets.fevercdn.com/nc/icons/icon_vote.svg"},{text:(0,j.jsx)(b.Z,{id:"info.state.votes",values:{votes:r}})})),o}({restDays:c&&s&&(0,y.xZ)(c)?(0,y.eV)(s)?0:Math.max((0,y.PE)(Date.now(),(0,y.DT)(s)),1):-1,participants:null!==(l=u[n])&&void 0!==l?l:0}):""}if("date"===t)return O(c&&s?{stepOne:{start:(0,y.DT)(c),end:(0,y.DT)(s)},isNewPromotion:!0}:{stepOne:{start:"",end:""}})}return!1}},{key:"render",value:function(){var e=this.getInfoState(),t=this.props,n=t.infoType,r=t.textColor;return(0,j.jsx)("div",{className:(0,x.iv)("date"===n?R:B,{color:r}),children:Boolean(e)&&e.map((function(e,t){return(0,j.jsxs)("div",{className:(0,x.iv)("date"===n?F:N),children:[(0,j.jsx)("img",{src:e.icon,className:(0,x.iv)("date"===n?k:P),alt:"info"}),(0,j.jsx)("div",{className:(0,x.iv)(C),children:e.text})]},"info-".concat(t))}))})}}]),n}(c.Component),P={width:"3rem"},k={width:"3rem",marginRight:".5rem"},C={padding:".5rem 0 .5rem 0"},I={display:"flex",flexWrap:"nowrap",flexDirection:"row",alignItems:"center",justifyContent:"center"},D={display:"flex",flexWrap:"nowrap",flexDirection:"column",alignItems:"center",justifyContent:"center"},R=Object.assign({},I,{"@media(max-width: 480px)":D}),F=Object.assign({},I,{width:"100%",margin:".5rem 1rem","@media(max-width: 480px)":{width:"80%",justifyContent:"flex-start"}}),B=Object.assign({},I,{alignItems:"flex-start",justifyContent:"space-around"}),N=Object.assign({},D,{margin:".5rem 1rem",whiteSpace:"nowrap"}),E=n(2475);var z=function(e){var t=e.title;return(0,j.jsx)("div",{className:(0,x.iv)(E.UF),children:(0,j.jsx)("h2",{className:(0,x.iv)(T),children:t})})},T={margin:"1.5rem 0",padding:"0 1rem",lineHeight:"3.125rem",fontSize:"2.25rem",fontWeight:"500"},H=n(50029),M=n(16835),U=n(27812),L=n(87794),_=n.n(L),A=n(16376),W=n.n(A),Y=n(62730),V=n.n(Y),q=n(74806),K=n(72845),G=n(4730),$=n(35161),J=n.n($),Q=n(46066),X=n(52654),ee=n(55869),te=n(26968),ne=["onClick"];function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie={"& .slick-dots":{bottom:"unset",position:"unset"}},ae=function(e){var t=e.data,n=e.slidesToShow,r=(0,ee.Gn)({data:t,slidesToShow:n}),o=(0,te.qe)({slidesToShow:n,data:t}),i=(0,te.oc)({slidesToShow:n,data:t}),a=(0,te.yt)({data:t,slidesToShow:n,dot:i,slide:o});return(0,j.jsx)("div",{className:(0,x.iv)(E.Kw),children:(0,j.jsx)("div",{className:(0,x.iv)(r,(0,x.iv)(ie)),children:(0,j.jsx)(Q.Z,oe(oe({},a),{},{children:J()(t,(function(e,t){var n=e.onClick,r=(0,G.Z)(e,ne);return(0,j.jsx)("div",{onClick:n,children:(0,j.jsx)(X.Z,oe({},r))},"Card".concat(e.id||t))}))}))})})},ce=n(89398),se=n(56281),le=n(28949),de=n(45308),ue=n(97674),pe=n(66470),fe=n(89392),he=n(47940),me=n(68250),ve=n(59177);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ge(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var o=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,v.Z)(this,n)}}var be=function(e){(0,m.Z)(n,e);var t=ye(n);function n(e){var r;return(0,p.Z)(this,n),r=t.call(this,e),(0,a.Z)((0,h.Z)(r),"onPopup",(function(e,t){r.setState({isNeedCenter:!0,showPopup:e,currentIndex:t},(function(){return e&&r.adjustPopupCenter()}))})),(0,a.Z)((0,h.Z)(r),"onChangePop",(function(e){var t,n=r.state,o=n.currentIndex,i=n.selectedPrizes;t="next"===e?o+1===i.length?0:o+1:o-1<0?i.length-1:o-1,r.onPopup(!0,t)})),(0,a.Z)((0,h.Z)(r),"isRectangle",(function(e){if(!e)return!1;var t=new Image;return t.src=e,t.height>t.width})),(0,a.Z)((0,h.Z)(r),"adjustPopupCenter",(function(){null!==r.popElement&&window.innerHeight<r.popElement.offsetHeight&&r.setState({isNeedCenter:!1})})),(0,a.Z)((0,h.Z)(r),"setTabs",(function(e){if(e.isAdminLottery){var t,n=r.props,o=n.promoUUID,i=n.newSecondaryPromotionInfo;if(Boolean(o))r.props.actions.initPromoJoinCount([o,null===i||void 0===i||null===(t=i.promo)||void 0===t?void 0:t.uuid])}r.setState({selectedLotteryUUID:e.uuid,selectedLotteryPromoUUID:e.promoUUID})})),r.state={isNeedCenter:!0,showPopup:!1,currentIndex:0,fixSlider:!0,status:"",selectedPrizes:[{}],selectedLotteryUUID:"",selectedLotteryPromoUUID:"",lotteryTabs:[],lotteryInfos:{},lotteryPrizes:{}},r}return(0,f.Z)(n,[{key:"componentDidMount",value:function(){this.init()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.state.selectedPrizes;e.layout!==this.props.layout&&t.length>3&&this.setState({fixSlider:!1})}},{key:"componentDidUpdate",value:function(e,t){var n=this.state,r=n.selectedPrizes,o=n.selectedLotteryUUID;e.layout!==this.props.layout&&r.length>3&&this.setState({fixSlider:!0}),!e.newPromotionInfo&&this.props.newPromotionInfo&&this.init(),t.selectedLotteryUUID!==o&&this.initLotteryAndPrizeData()}},{key:"init",value:function(){var e=this.props,t=e.promoUUID,n=e.newPromotionInfo,r=e.newMgmPromotionInfo;Boolean(t)&&(Boolean(n)||Boolean(r))&&this.initLotteryTabs()}},{key:"initLotteryTabs",value:function(){var e=this.props,t=e.promoType,n=e.newPromotionInfo,r=n.promo,o=(r=void 0===r?{}:r).uuid,i=n.lotteryInstantUUID,a=n.lotteryParticipantUUID,c=n.lotteryAdminUUID,s=n.lotteryTaskUUIDS,l=void 0===s?{}:s,d=e.newSecondaryPromotionInfo,u=e.intl,p=e.newMgmPromotionInfo,f=null!==d,h=null!==p&&void 0!==p,m=(d||{}).promo,v=(m=void 0===m?{}:m).uuid,g=p||{},x=g.promo,y=(x=void 0===x?{}:x).uuid,b=g.lotteryInstantUUID,w=g.lotteryParticipantUUID,j=g.lotteryAdminUUID,O=g.lotteryTaskUUIDS,S=h?y:o,Z=h?w:a,P=h?b:i,k=h?j:c,C=h?void 0===O?{}:O:l,I=[].concat((0,U.Z)(f?function(){var e=d.lotteryInstantUUID,t=d.lotteryParticipantUUID,n=d.lotteryAdminUUID,r=d.lotteryTaskUUIDS,o=void 0===r?{}:r;return[{label:D("label.new_promo.lottery_tabs.creator",u.formatMessage({id:"label.new_promo.lottery_tabs.instant"})),uuid:e,promoUUID:v},{label:D("label.new_promo.lottery_tabs.creator",u.formatMessage({id:"label.new_promo.lottery_tabs.participant"})),uuid:t,promoUUID:v},{label:D("label.new_promo.lottery_tabs.creator",u.formatMessage({id:"label.new_promo.lottery_tabs.draw"})),uuid:n,promoUUID:v,isAdminLottery:!0}].concat((0,U.Z)(function(){var e=Object.entries(o);return e.sort((function(e,t){return e[1]-t[1]})),e.map((function(e){var t=(0,M.default)(e,2),n=t[0],r=t[1];return{label:D("label.new_promo.lottery_tabs.creator",u.formatMessage({id:"label.new_promo.lottery_tabs.check_in"},{quantity:r})),uuid:n,promoUUID:v}}))}()))}():[]),[{label:D("label.new_promo.lottery_tabs.voter",u.formatMessage({id:"label.new_promo.lottery_tabs.instant"})),uuid:P,promoUUID:S},{label:D("label.new_promo.lottery_tabs.voter",u.formatMessage({id:"label.new_promo.lottery_tabs.participant"})),uuid:Z,promoUUID:S},{label:D("label.new_promo.lottery_tabs.voter",u.formatMessage({id:"label.new_promo.lottery_tabs.draw"})),uuid:k,promoUUID:S,isAdminLottery:!0}],(0,U.Z)(function(){var e=Object.entries(C);e.sort((function(e,t){return e[1]-t[1]}));var n=h?"label.new_promo.lottery_tabs.Mgm_task":t===pe.rS.CHECK_IN?"label.new_promo.lottery_tabs.check_in":"label.new_promo.lottery_tabs.task";return e.map((function(e){var t=(0,M.default)(e,2),r=t[0],o=t[1];return{label:D("label.new_promo.lottery_tabs.voter",u.formatMessage({id:n},{quantity:o})),uuid:r,promoUUID:S}}))}())).filter((function(e){return void 0!==e.uuid}));function D(e,t){return f?"".concat(u.formatMessage({id:e})," - ").concat(t):t}I.length>0&&this.setTabs(I[0]),this.setState({lotteryTabs:I})}},{key:"initLotteryAndPrizeData",value:function(){var e=(0,H.Z)(_().mark((function e(){var t,n,r,o,i,c,s,l,d,u,p,f,h,m,v;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=this.props,r=n.intl,o=n.newPromotionInfo,i=n.newSecondaryPromotionInfo,c=n.newMgmPromotionInfo,s=this.state,l=s.selectedLotteryUUID,d=s.selectedLotteryPromoUUID,u=s.lotteryInfos,p=s.lotteryPrizes,f=null!==c&&void 0!==c?c:o,h=d,e.t0=u[l],e.t0){e.next=11;break}return e.next=10,(0,K.rJ)(h,l);case 10:e.t0=e.sent;case 11:if(m=e.t0,e.t1=p[l],e.t1){e.next=17;break}return e.next=16,(0,K.t6)(h,l);case 16:e.t1=e.sent;case 17:v=e.t1,void 0===u[l]&&this.setState((function(e){return xe(xe({},e),{},{lotteryInfos:xe(xe({},e.lotteryInfos),{},(0,a.Z)({},l,m))})})),void 0===p[l]&&this.setState((function(e){return xe(xe({},e),{},{lotteryPrizes:xe(xe({},e.lotteryPrizes),{},(0,a.Z)({},l,v))})})),this.setState({selectedPrizes:ze(d===(null===f||void 0===f||null===(t=f.promo)||void 0===t?void 0:t.uuid)?f:i,m,v,r)}),e.next=26;break;case 23:e.prev=23,e.t2=e.catch(0),console.log("Failed to get lottery and prize data:",e.t2);case 26:case"end":return e.stop()}}),e,this,[[0,23]])})));return function(){return e.apply(this,arguments)}}()},{key:"render",value:function(){var e=this,t=this.state,n=t.showPopup,r=t.currentIndex,o=t.fixSlider,i=t.status,a=t.selectedPrizes,s=t.isNeedCenter,l=t.lotteryTabs,d=t.selectedLotteryUUID,u=t.selectedLotteryPromoUUID,p=this.props,f=p.layout,h=p.isMobile,m=p.promoState,v=(m=void 0===m?{}:m).promoUUIDsMappingJoinCount,g=(void 0===v?{}:v)[u],y=(0,he.i)({layout:f});return(0,j.jsxs)("div",{className:(0,x.iv)(je),children:[l.length>1&&(0,j.jsx)("div",{className:(0,x.iv)(Ne),children:(0,j.jsx)("div",{children:l.map((function(t){return(0,j.jsx)("div",{className:(0,x.iv)(Ee(t.uuid===d)),onClick:function(){return e.setTabs(t)},children:t.label},t.uuid)}))})}),(0,j.jsx)(de.Z,{once:!0,placeholder:(0,j.jsx)(ue.Z,{data:a,layout:f,
1isMobile:h,customStyle:Fe}),children:a.length>0&&o&&(0,j.jsx)(ae,{data:a.map((function(t,n){var r="locked"===t.type?g>=t.unlockNeeds?{type:"normal",unlockNeeds:0}:{unlockNeeds:t.unlockNeeds-g}:{};return Object.assign({},t,r,{onClick:function(){return e.onPopup(!0,n)},defaultImgUrl:"https://assets.fevercdn.com/nc/icons/img_cardImg_giftDefault.svg"})})),slidesToShow:y})}),a.length>0&&"awarded"===i&&(0,j.jsx)("div",{className:(0,x.iv)(Re),children:1===a[0].game32LoginType&&(0,j.jsx)(c.Fragment,{children:(0,j.jsx)("button",{className:(0,x.iv)(De),onClick:function(){return e.refs.iframeModal.openPortal()},children:(0,j.jsx)(b.Z,{id:"prize.redeem",defaultMessage:"Redeem Prize"})})})}),n&&(0,j.jsx)(W(),{onSwipedLeft:function(){return e.onChangePop("prev")},onSwipedRight:function(){return e.onChangePop("next")},children:(0,j.jsx)(ce.Z,{disableScroll:!0,onClickOutSide:function(){return e.onPopup(!1)},innerClass:"pure-u-xl-1-4 pure-u-lg-1-3 pure-u-md-1-2 pure-u-sm-1-2 pure-u-1 ".concat((0,x.iv)(Be(s))),popupStyle:(0,x.iv)({alignItems:"flex-start"}),children:(0,j.jsxs)("div",{ref:function(t){return e.popElement=t},children:[a.length>1&&(0,j.jsx)(le.Z,{onClick:function(){return e.onChangePop("prev")},type:"prev",css:Ce("prev")}),(0,j.jsx)("div",{className:(0,x.iv)(Oe),children:(0,j.jsx)(se.Z,{className:(0,x.iv)({top:".5rem",right:".5rem",fontSize:"2rem"}),onClick:function(){return e.onPopup(!1)}})}),(0,j.jsx)("div",{className:(0,x.iv)(fe.nC,fe.fK,Se),children:(0,j.jsx)("img",{src:a[r].imgUrl,className:(0,x.iv)(Ze,fe.kQ,{width:this.isRectangle(a[r].imgUrl)?"auto":"100%",height:this.isRectangle(a[r].imgUrl)?"100%":"auto"}),alt:"prize"})}),(0,j.jsxs)("div",{className:(0,x.iv)(je),children:[(0,j.jsx)("div",{className:(0,x.iv)(Pe),children:a[r].title}),(0,j.jsx)("div",{className:(0,x.iv)(ke),dangerouslySetInnerHTML:{__html:a[r].subTitle}}),(0,j.jsx)("div",{dangerouslySetInnerHTML:{__html:a[r].description}})]}),a.length>1&&(0,j.jsx)(le.Z,{onClick:function(){return e.onChangePop("next")},type:"next",css:Ce("next")})]})})}),(0,j.jsx)(V(),{ref:"iframeModal",closeOnEsc:!0,closeOnOutsideClick:!0,children:(0,j.jsx)(ce.Z,{disableScroll:!0,onClickOutSide:function(){return e.refs.iframeModal.closePortal()},innerClass:"pure-u-xl-1-2 pure-u-lg-1-2 pure-u-md-2-3 pure-u-sm-3-4 pure-u-1",innerStyle:{height:"90%"}})})]})}}]),n}(c.Component),we=(0,q.ZP)(be),je={margin:"1rem",marginBottom:"2.5rem",wordWrap:"break-word"},Oe={position:"absolute",top:0,right:0,width:"100%",height:"3rem",zIndex:2,backgroundImage:"linear-gradient(-180deg, rgba(0,0,0,0.37) 0%, rgba(0,0,0,0.00) 100%)"},Se={background:"url('https://assets.fevercdn.com/nc/icons/img_cardImg_giftDefault.svg') center center no-repeat ".concat(me.H),backgroundSize:"30%"},Ze={height:"100%"},Pe={fontSize:"1.3rem",marginBottom:"1rem"},ke={fontSize:"1rem",marginBottom:"1rem"},Ce=function(e){return{position:"fixed",left:"prev"===e?"calc(50% - 18rem)":"",right:"next"===e?"calc(50% - 17rem)":"","@media(max-width: 570px)":{display:"none"},"@media(min-width: 1920px)":{left:"prev"===e?"35%":"",right:"next"===e?"35%":""}}},Ie={width:"30%",cursor:"pointer",fontSize:"1rem",color:me.E,textAlign:"center",backgroundColor:me.t,border:0,borderRadius:"2px",boxShadow:ve.j,padding:".75rem",outline:"none","@media(max-width: 480px)":{width:"95%"}},De=Object.assign({},Ie,{"@media(max-width: 480px)":{display:"none"}}),Re={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",marginTop:"2rem"},Fe={"> div":{"@media(max-width: 480px)":{padding:"0 20px"}}},Be=function(e){return{top:e?"50%":"0",transform:e?"translateY(-50%)":"translateY(0%)"}},Ne={"> div":{display:"flex",flexWrap:"wrap",flexDirection:"row",alignItems:"center",justifyContent:"center",padding:".5rem 0",margin:"0 1rem"}},Ee=function(e){return{background:e?me.F:me.E,margin:".25rem",cursor:"pointer",fontSize:"14px",border:"1px solid #E3E3E3",borderRadius:"2px",padding:".5rem 1.5rem"}};function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=e.promoSetting,i=(o=void 0===o?{}:o).Promotions,a=(i=void 0===i?{}:i).loginMethod,c=t.lottery,s=c.type,l=c.hasAnnounced,d=t.lotterySetting.Lotteries,u=(d=void 0===d?{}:d).showRest,p=void 0===u?0:u;return 0===s?n.map((function(e){var t=e.uuid,n=e.name,o=e.settings,i=(o=void 0===o?{}:o).quantity,c=void 0===i?0:i,s=o.imageUrl,d=o.description,u=o.unlockThreshold,f=void 0===u?0:u,h={id:t,imgUrl:s,title:n,subTitle:0===p?"":"<span>".concat(r.formatMessage({id:"label.new_promo.prize.quantity.total"},{quantity:c}),"</span>"),description:d,share_flag:0,type:"normal",game32LoginType:a};return f>0&&(h.type="locked",h.unlockNeeds=f),l&&(h.type="announced"),h})):n.map((function(e){var t=e.uuid,n=e.name,o=e.remainder,i=e.isLimited,c=e.settings,s=(c=void 0===c?{}:c).imageUrl,l=c.description,d=c.quantity;return{id:t,imgUrl:s,title:n,subTitle:p&&i?"<span>".concat(r.formatMessage({id:"label.new_promo.prize.quantity.".concat(1===p?"remain":"total")},{quantity:1===p?o:d}).replace(/([\d,]+)/i,'<bdi style="color: red">$&</bdi>'),"</span>"):"",description:l,share_flag:0,type:"normal",game32LoginType:a}}))}var Te=n(83824),He=n(70131);function Me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Me(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var o=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,v.Z)(this,n)}}var _e=function(e,t){return function(n){(0,m.Z)(o,n);var r=Le(o);function o(e){var n;return(0,p.Z)(this,o),n=r.call(this,e),(0,a.Z)((0,h.Z)(n),"addScrollListener",(function(){window.addEventListener("scroll",n.handleScroll,{passive:!0})})),(0,a.Z)((0,h.Z)(n),"removeScrollListener",(function(){window.removeEventListener("scroll",n.handleScroll,{passive:!0})})),(0,a.Z)((0,h.Z)(n),"handleScroll",(function(){var e=window.scrollY;n.previousScroll=n.previousScroll||0,n.previousScroll>e?n.setState({isScrollUp:!0,currentScroll:e}):n.setState({isScrollUp:!1,currentScroll:e}),n.previousScroll=e})),n.state=Object.assign({isActive:!0,isScrollUp:!1,currentScroll:0},t),n}return(0,f.Z)(o,[{key:"componentDidMount",value:function(){this.state.isActive&&this.addScrollListener()}},{key:"componentWillUnmount",value:function(){this.removeScrollListener()}},{key:"render",value:function(){return(0,j.jsx)(e,Ue({},Ue(Ue(Ue({},this.props),this.state),{},{addScrollListener:this.addScrollListener,removeScrollListener:this.removeScrollListener})))}}]),o}(c.Component)},Ae=n(17563),We=n(92056),Ye=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","test"];function Ve(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var o=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,v.Z)(this,n)}}var qe=function(e){(0,m.Z)(n,e);var t=Ve(n);function n(){var e;(0,p.Z)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,a.Z)((0,h.Z)(e),"state",{hasInit:!1,promoQueryString:""}),(0,a.Z)((0,h.Z)(e),"iframeRef",c.createRef()),(0,a.Z)((0,h.Z)(e),"handlePostMessage",(function(t){var n=e.iframeRef.current;if(n&&t.source===n.contentWindow){var r=t.data,o=document.getElementById("zines-fixed-header");Je(r,n,{topOffset:o?o.offsetHeight:0})}})),e}return(0,f.Z)(n,[{key:"componentDidMount",value:function(){this.props.isLazy||this.initIframe()}},{key:"componentDidUpdate",value:function(e){e.isLazy&&!this.props.isLazy&&this.initIframe()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("message",this.handlePostMessage)}},{key:"initIframe",value:function(){this.setPromoQueryString(),window.addEventListener("message",this.handlePostMessage),this.setState({hasInit:!0})}},{key:"setPromoQueryString",value:function(){var e=this.props.isClientMode,t=Ae.parse(window.location.search),n=(t.utm_source,t.utm_medium,t.utm_campaign,t.utm_term,t.utm_content,t.test),r=(0,G.Z)(t,Ye);e||(r.mode="preview"),r.parentUrl=encodeURIComponent(window.location.href);var o=n?"test=".concat(n,"&"):"";this.setState({promoQueryString:"".concat(o).concat(Ae.stringify(r,{encode:!0}))})}},{key:"getPromoIframeSrc",value:function(){var e=this.props,t=e.domain,n=e.promoId,r=e.promoUUID,o=e.parentDomain,i=e.isClientMode?t:o,a=this.state.promoQueryString;return"https://".concat(i,"/promotions/").concat(r,"/").concat(n,"/join").concat(a?"?".concat(a):"")}},{key:"render",value:function(){var e=this.props.promoUUID,t=this.state.hasInit;return(0,j.jsx)("div",{ref:this.props.forwardRef,children:(0,j.jsx)("iframe",{className:(0,x.iv)(Ge),title:"promotion-".concat(e),src:t?this.getPromoIframeSrc():"",scrolling:"no",seamless:"seamless",frameBorder:"0",ref:this.iframeRef})})}}]),n}(c.Component);(0,a.Z)(qe,"defaultProps",{isClientMode:!1});var Ke=c.memo(qe),Ge={width:"100%",height:"500px"};function $e(e,t,n,r){var o="center"===n?window.innerHeight/2-r:0;!function(e){try{window.scroll(0,e)}catch(t){window.scroll(0,e)}}(function(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset}}(e).top+t-r-o)}function Je(e,t,n){if("string"!==typeof e||-1===e.indexOf("feverPage:"))switch(e.event){case We.Yu:t.style.height=e.payload.height+"px",Boolean(t.parentElement)&&(t.parentElement.style.height=e.payload.height+"px");break;case We.tC:$e(t,e.payload.elementTopOffsetWithFrame,e.payload.block,Number(n.topOffset||0));break;case We.H3:window.location.href=e.payload.url}else{var r=e.split(":")[1];t.style.height=r+"px"}}var Qe="zines_scrollIntoPromoSectionParams";function Xe(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,g.Z)(e);if(t){var o=(0,g.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,v.Z)(this,n)}}var et=_e(function(e){(0,m.Z)(n,e);var t=Xe(n);function n(e){var r;return(0,p.Z)(this,n),r=t.call(this,e),(0,a.Z)((0,h.Z)(r),"onChangeWaypoint",(function(e){var t=r.props,n=t.addScrollListener,o=t.removeScrollListener;e?o():n()})),r.pluginSectionRef=c.createRef(),r}
1return(0,f.Z)(n,[{key:"componentDidMount",value:function(){this.scrollIntoViewWhenPromoLoginRedirect()}},{key:"scrollIntoViewWhenPromoLoginRedirect",value:function(){if(this.props.promoUUID===function(e){var t=sessionStorage.getItem(e),n=(t?JSON.parse(t):{}).value;return void 0===n?{}:n}(Qe).promoUUID)return function(e){if("function"===typeof e.scrollIntoView)try{e.scrollIntoView({behavior:"smooth"})}catch(t){e.scrollIntoView()}}(this.pluginSectionRef.current),void sessionStorage.removeItem(Qe)}},{key:"render",value:function(){var e=this,t=this.props,n=t.promoId,r=t.promoUUID,o=t.layout,i=t.isEditor,a=t.promoDomain,c=t.parentDomain,s=Boolean(r),l=window;return(0,j.jsx)("div",{className:(0,x.iv)(tt(o)),ref:this.pluginSectionRef,children:(0,j.jsx)(Te.h,{scrollableAncestor:l,onEnter:function(){return e.onChangeWaypoint(!0)},onLeave:function(){return e.onChangeWaypoint(!1)},children:(0,j.jsx)("div",{children:(0,j.jsx)(He.df,{triggerOnce:!0,rootMargin:"500px",children:function(e){var t=e.inView,o=e.ref;return s?(0,j.jsx)(Ke,{isClientMode:!i,domain:a,parentDomain:c,promoId:n,promoUUID:r,forwardRef:o,isLazy:!t}):(0,j.jsx)(j.Fragment,{})}})})})})}}]),n}(c.Component)),tt=function(e){return{margin:"full"===e?"0":"1.5rem","@media(max-width: 480px)":{margin:0,boxShadow:0}}};var nt=function(e){var t=e.promoUUID,n=e.promoId,r=e.promoDomain,o=(0,c.useRef)(null),i=window.location.search,a="https://".concat(r,"/ugc/").concat(t,"/").concat(n,"/gallery").concat(i);return(0,c.useEffect)((function(){function e(e){var t=o.current;if(Boolean(t)&&e.source===t.contentWindow){var n=e.data;"@feverevent/height-resize"===n.event&&(t.style.height=n.payload.height+"px")}}return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}}),[]),(0,j.jsx)("iframe",{ref:o,src:a,allowTransparency:"true",allowFullScreen:"allowFullScreen",scrolling:"no",seamless:"seamless",frameBorder:"0",className:(0,x.iv)({display:"block",overflow:"hidden",width:"100%"}),title:"gallery"})},rt=n(74923);function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.avatar,n=e.loginMethod,r=e.memberId;return n===rt.loginTypes.FACEBOOKLOGIN?r?"https://graph.facebook.com/".concat(r,"/picture?type=square"):"":n===rt.loginTypes.LINELOGIN?t:""}function it(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function at(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ct="timeSpent";function st(e){var t=e.promo,n=(t=void 0===t?{}:t).id,r=t.uuid,o=e.promoSetting,i=(o=void 0===o?{}:o).Games,a=void 0===i?{}:i,s=o.Promotions,l=void 0===s?{}:s,d=(0,c.useState)(!1),u=d[0],p=d[1],f=(0,c.useState)([]),h=f[0],m=f[1],v=(0,c.useState)(!1),g=v[0],y=v[1],w=(0,c.useState)(!0),O=w[0],S=w[1],Z=(0,c.useState)({page:1,perPage:12}),P=Z[0],k=Z[1],C=a.recordSort,I=l.loginMethod;(0,c.useEffect)((function(){var e=function(){var e=(0,H.Z)(_().mark((function e(){var t,n,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.eF)(r,at(at({orderColumn:C},C===ct?{status:1}:{}),P));case 2:t=e.sent,n=t.items,o=t.itemSum,m(D(n)),S(!1),o<=12&&y(!0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Boolean(n)&&!u&&(p(!0),e())}),[n]);var D=function(e){return e.map((function(e){var t=e.id,n=e.member_id,r=e.fullname,o=e.nickname,i=e.avatar,a=e.timeSpent;return{id:t,avatar:ot({avatar:i,loginMethod:I,memberId:n}),nickname:null!==o&&void 0!==o?o:r,timeSpent:~~(a/1e3)}}))},R=function(){var e=(0,H.Z)(_().mark((function e(){var t,n,o,i,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),t=at(at({},P),{},{page:P.page+1}),e.next=4,(0,K.eF)(r,at(at({orderColumn:C},C===ct?{status:1}:{}),t));case 4:n=e.sent,o=n.items,i=n.itemSum,(a=[].concat((0,U.Z)(h),(0,U.Z)(D(o)))).length>=i&&y(!0),k(t),m(a),S(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsxs)("div",{className:(0,x.iv)(lt),children:[(0,j.jsx)("span",{className:(0,x.iv)(dt),children:(0,j.jsx)(b.Z,{id:"label.participant_records",defaultMessage:"Records"})}),(0,j.jsx)("div",{className:(0,x.iv)(ut),children:h.map((function(e){return(0,j.jsxs)("div",{className:(0,x.iv)(pt(4)),children:[Boolean(e.avatar)&&(0,j.jsx)("img",{className:(0,x.iv)(ft),src:e.avatar,alt:"avatar"}),(0,j.jsxs)("div",{className:(0,x.iv)(ht),children:[(0,j.jsxs)("div",{className:(0,x.iv)(mt),children:[Boolean(e.avatar)&&(0,j.jsx)("span",{css:(0,x.iv)(vt),children:e.nickname}),(0,j.jsxs)("span",{css:(0,x.iv)(gt),children:[(0,j.jsx)(b.Z,{id:"label.serial_no",defaultMessage:"No"}),"\uff1a",e.id]})]}),(0,j.jsxs)("span",{className:(0,x.iv)(xt),children:[e.timeSpent," ",(0,j.jsx)(b.Z,{id:"label.second",defaultMessage:"seconds"})]})]})]})}))}),!g&&(0,j.jsx)("div",{className:(0,x.iv)(yt(O)),onClick:R,children:(0,j.jsx)("span",{className:(0,x.iv)(bt),children:(0,j.jsx)(b.Z,{id:"bt
1n.view_more",defaultMessage:"View More"})})})]})}var lt={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center ",paddingBottom:"16px"},dt={color:me.P,fontWeight:400,fontSize:"34px",lineHeight:"49px",textAlign:"center",letterSpacing:"0.25px",padding:"16px"},ut={display:"flex",alignItems:"center",justifyContent:"space-evenly",flexWrap:"wrap",padding:"8px 0",width:"100%"},pt=function(e){return{flex:"0 0 calc(".concat(100/e,"% - 48px)"),padding:"16px",display:"flex",alignItems:"center",marginBottom:"16px",justifyContent:"space-between",backgroundColor:me.E,borderRadius:"24px",minWidth:"240px"}},ft={width:"40px",height:"40px",borderRadius:"50%",marginRight:"16px"},ht={display:"flex",alignItems:"center",justifyContent:"space-between",flex:1},mt={display:"flex",flexDirection:"column"},vt={fontWeight:"500",fontSize:"16px",lineHeight:"23px",letterSpacing:"0.15px",color:me.P},gt={fontWeight:"400",fontSize:"12px",lineHeight:"17px",letterSpacing:"0.4px",color:me.M},xt={fontWeight:"500",fontSize:"20px",lineHeight:"29px",letterSpacing:"0.15px",color:me.P},yt=function(e){return at({width:"100%",maxWidth:"320px",padding:"16px 0",textAlign:"center",borderRadius:"999px",backgroundColor:me.E,cursor:"pointer"},e?{pointerEvents:"none"}:{})},bt={color:me.G,fontWeight:500,fontXize:"20px",lineHeight:"29px",letterSpacing:"0.15px"},wt=n(79566),jt=n.n(wt);function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zt(e){var t=e.backgroundImageUrl,n=void 0===t?"":t,r=e.backgroundColor,o=void 0===r?"":r,i=e.aspectRatio,a=void 0===i?1:i,c=e.maxWidth,s=void 0===c?960:c,l=e.customStyles,d=void 0===l?{}:l,u=e.disableAspectRatio,p=void 0!==u&&u,f=e.InjectComp,h=e.children;return(0,j.jsxs)("div",{className:(0,x.iv)(Pt({maxWidth:s,backgroundImageUrl:n,backgroundColor:o}),d),children:[f,(0,j.jsx)("div",{className:(0,x.iv)(kt(1/a,p)),children:(0,j.jsx)("div",{className:(0,x.iv)(Ct(p)),children:h})})]})}var Pt=function(e){var t=e.maxWidth,n=e.backgroundImageUrl,r=e.backgroundColor,o=Boolean(n)?{backgroundImage:"url(".concat(n,")"),backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}:{},i=Boolean(r)?{backgroundColor:r}:{};return St(St({width:"100%",maxWidth:t},o),i)},kt=function(e,t){return St(St({width:"100%"},t?{}:{paddingTop:"".concat(100*e,"%")}),{},{position:"relative"})},Ct=function(e){return St(St({},e?{}:{position:"absolute",top:"0",left:"0",right:"0",bottom:"0"}),{},{width:"100%",height:"100%"})};var It=function(e){var t=e.content,n=void 0===t?"":t,r=e.placeholder,o=void 0===r?"":r,i=e.style,a=void 0===i?{}:i,s=e.maxFontSize,l=void 0===s?24:s,d=e.minFontSize,u=void 0===d?16:d,p=e.lineHeight,f=void 0===p?1.2:p,h=(0,c.useRef)(null),m=!String(n).trim();return(0,c.useLayoutEffect)((function(){var e=h.current;if(e){var t=e.clientHeight;for(e.style.fontSize="".concat(l,"px"),e.style.maxHeight="".concat(t,"px"),e.style.height="unset";e.scrollHeight>t&&parseFloat(e.style.fontSize)>u;)e.style.fontSize="".concat(parseFloat(e.style.fontSize)-1,"px")}}),[l,u,n]),(0,j.jsx)("div",{ref:h,className:(0,x.iv)(Dt,a,Rt({lineHeight:f,maxFontSize:l})),children:m?o:n})},Dt={overflow:"hidden",height:"100%",overflowWrap:"break-word",letterSpacing:"normal",whiteSpace:"pre-wrap",fontWeight:"500"},Rt=function(e){var t=e.lineHeight,n=e.maxFontSize;return{fontSize:"".concat(n,"px"),lineHeight:t}};function Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?Ft(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt="image";function Et(e){var t=e.promo,n=(t=void 0===t?{}:t).id,r=t.uuid,o=e.promoSetting,i=(o=void 0===o?{}:o).Games,a=void 0===i?{}:i,s=o.Promotions,l=void 0===s?{}:s,d=e.settingOption,u=void 0===d?{}:d,p=a.enableFixedAspectRatio,f=l.loginMethod,h=(0,c.useState)(!1),m=h[0],v=h[1],g=(0,c.useState)([]),y=g[0],w=g[1],O=(0,c.useState)(!1),S=O[0],Z=O[1],P=(0,c.useState)(!0),k=P[0],C=P[1],I=(0,c.useState)({page:1,perPage:12}),D=I[0],R=I[1];(0,c.useEffect)((function(){var e=function(){var e=(0,H.Z)(_().mark((function e(){var t,n,o;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,K.eF)(r,Bt({},D));case 2:t=e.sent,n=t.items,o=t.itemSum,w(F(n)),C(!1),o<=12&&Z(!0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Boolean(n)&&!m&&(v(!0),e())}),[n]);var F=function(e){return e.map((function(e){var t=e.id,n=e.memberId,r=e.ugcAuthorName,o=e.nickname,i=e.avatar,a=e.media[0],c=a.promotionOptionUuid,s=a.result;return{id:t,avatar:ot({avatar:i,loginMethod:f,memberId:n}),nickname:r||o,result:s,promotionOptionUuid:c}}))},B=function(){var e=(0,H.Z)(_().mark((function e(){var t,n,o,i,a;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t=Bt(Bt({},D),{},{page:D.page+1}),e.next=4,(0,K.eF)(r,Bt({},t));case 4:n=e.sent,o=n.items,i=n.itemSum,(a=[].concat((0,U.Z)(y),(0,U.Z)(F(o)))).length>=i&&Z(!0),R(t),w(a),C(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,j.jsxs)("div",{className:(0,x.iv)(Ht),children:[(0,j.jsx)("div",{className:(0,x.iv)(Mt(p)),children:(0,j.jsx)(zt,{enableFixedAspectRatio:p,children:y.map((function(e){var t;return(0,j.jsxs)("div",{className:(0,x.iv)(Ut(4,p)),children:[(0,j.jsx)("div",{className:(0,x.iv)(Lt),children:Boolean(e.avatar)&&(0,j.jsx)("img",{className:(0,x.iv)(_t),src:e.avatar,alt:"avatar"})}),(0,j.jsxs)("div",{className:(0,x.iv)(At),children:[(0,j.jsxs)("div",{className:(0,x.iv)(Wt),children:[Boolean(e.nickname)&&(0,j.jsx)("span",{className:(0,x.iv)(Yt),children:e.nickname}),(0,j.jsxs)("span",{className:(0,x.iv)(Vt),children:[(0,j.jsx)(b.Z,{id:"label.serial_no",defaultMessage:"No"}),"\uff1a",e.id]})]}),(0,j.jsx)(Tt,{messageText:e.result,settingOption:null!==(t=u.find((function(t){return t.uuid===e.promotionOptionUuid})))&&void 0!==t?t:{},enableFixedAspectRatio:p})]})]})}))})}),!S&&(0,j.jsx)("div",{className:(0,x.iv)(Qt(k)),onClick:B,children:(0,j.jsx)("span",{className:(0,x.iv)(Xt),children:(0,j.jsx)(b.Z,{id:"bt
1n.view_more",defaultMessage:"View More"})})})]})}function zt(e){var t=e.enableFixedAspectRatio,n=e.children,r=(0,c.useMemo)((function(){return{fitWidth:!0}}),[]);return Boolean(t)?n:(0,j.jsx)(jt(),{options:r,children:n})}function Tt(e){var t=e.messageText,n=e.settingOption,r=e.enableFixedAspectRatio,o=null!==n&&void 0!==n?n:{},i=o.value,a=o.settings,c=(a=void 0===a?{}:a).mode,s=a.colorText,l=a.colorBorder,d=a.colorMask,u=a.colorBackGround,p=function(e){var t=e.disableAspectRatio,n=e.children;return(0,j.jsx)(Zt,{backgroundImageUrl:c===Nt&&i,backgroundColor:"color"===c&&u,aspectRatio:1.4285714285714286,customStyles:qt,disableAspectRatio:t,InjectComp:(0,j.jsx)("div",{className:(0,x.iv)(Kt(c===Nt&&d))}),children:(0,j.jsx)("div",{className:(0,x.iv)(Gt(l)),children:n})})},f=function(){return(0,j.jsx)(p,{children:(0,j.jsx)(It,{content:t,style:$t(s),maxFontSize:34,minFontSize:14,rowLimit:10})})},h=function(){return(0,j.jsx)(p,{disableAspectRatio:!0,children:(0,j.jsx)("span",{className:(0,x.iv)(Jt(s)),children:t})})};return Boolean(r)?(0,j.jsx)(f,{}):(0,j.jsx)(h,{})}var Ht={display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center ",padding:"16px 0 "},Mt=function(e){return Bt({display:"flex",alignItems:"center",width:"100%"},e?{display:"flex",alignItems:"center",justifyContent:"space-evenly",flexWrap:"wrap",padding:"8px 0"}:{justifyContent:"center"})},Ut=function(e,t){return Bt(Bt({flex:"0 0 calc(".concat(100/e,"% - 48px)")},t?{}:{width:"calc(".concat(100/e,"% - 48px)"),marginRight:"16px"}),{},{display:"flex",alignItems:"flex-start",marginBottom:"16px",justifyContent:"center",minWidth:"340px",padding:"8px"})},Lt={marginRight:"8px"},_t={width:"40px",height:"40px",borderRadius:"50%"},At={display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"space-between",flex:1},Wt={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px",width:"100%"},Yt={fontWeight:"500",fontSize:"16px",lineHeight:"23px",letterSpacing:"0.15px",color:me.P},Vt={fontWeight:"400",fontSize:"12px",lineHeight:"17px",letterSpacing:"0.4px",color:me.M},qt={padding:"8px",borderRadius:"0px 24px 24px 24px",position:"relative"},Kt=function(e){return{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"0px 24px 24px 24px",backgroundColor:e}},Gt=function(e){return{padding:"8px",border:"1px solid ".concat(e),boxSizing:"border-box",borderRadius:"0px 16px 16px 16px",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},$t=function(e){return{fontWeight:"500",letterSpacing:"0.15px",display:"flex",justifyContent:"center",textAlign:"center",color:e,wordBreak:"break-word",wordWrap:"break-word"}},Jt=function(e){return{fontWeight:"500",letterSpacing:"0.15px",fontSize:"20px",lineHeight:"29px",height:"100%",color:e,wordBreak:"break-word",wordWrap:"break-word"}},Qt=function(e){return Bt({width:"100%",maxWidth:"320px",padding:"16px 0",textAlign:"center",borderRadius:"999px",backgroundColor:me.E,cursor:"pointer"},e?{pointerEvents:"none"}:{})},Xt={color:me.G,fontWeight:500,fontXize:"20px",lineHeight:"29px",letterSpacing:"0.15px"},en=n(45374);function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rn=function(e){var t,n=e._id,r=e.type,o=e.layout,i=e.textColor,a=e.page,c=a.domain,p=a.isWhiteCard,f=a.partnerDomain,h=a.parentDomain,m=e.promo,v=m.id,g=m.uuid,x=m.type,y=m.title,b=e.promoState,w=e.newPromotionInfo,O=e.newSecondaryPromotionInfo,S=e.promoLocale,P=e.promoLangJson,k=e.query,C=k.params,I=k.isEditor,D=k.isMobile,R=e.renderSettingButton,F=void 0===R?function(){}:R,B=e.actions,N=e.newMgmPromotionInfo,E=Boolean(g);switch(r){case"PromoState":t=(0,j.jsx)(Z,{infoType:"state",promoUUID:g,newPromotionInfo:w,newSecondaryPromotionInfo:O,textColor:i,actions:B,promoState:b});break;case"PromoDate":t=(0,j.jsx)(Z,{infoType:"date",promoUUID:g,newPromotionInfo:w,textColor:i});break;case"PromoTitle":t=(0,j.jsx)(z,{title:y});break;case"PromoResult":E&&((0,pe.OU)(x)?t=(0,j.jsx)(de.Z,{once:!0,placeholder:(0,j.jsx)(en.Z,{holderStyle:{height:"80vh"}}),children:(0,j.jsx)(nt,{promoUUID:g,promoId:v,promoDomain:p?f:c})}):x===pe.rS.MEMORY_MATCH?t=(0,j.jsx)(st,nn({},w)):x===pe.rS.COMMENT&&(t=(0,j.jsx)(Et,nn({},w))));break;case"PromoPrize":t=(0,j.jsx)(we,{promoUUID:g,promoType:x,newPromotionInfo:w,newSecondaryPromotionInfo:O,promoDomain:p?f:c,params:C,layout:o,isMobile:D,actions:B,promoState:b,newMgmPromotionInfo:N});break;case"PromoPlugin":t=(0,j.jsx)(et,{promoId:v,promoUUID:g,layout:o,promoDomain:p?f:c,parentDomain:h,isEditor:I,params:C});break;default:t=!1}return E&&t?(0,j.jsxs)(l.Z,{sectionId:n,children:[I&&F(n),(0,j.jsx)(d.Z,{sectionId:n,isEditor:I,children:(0,j.jsx)(u.Z,{sectionId:n,children:(0,j.jsx)(s.Z,{locale:S,messages:P,children:t})})})]}):(0,j.jsx)(j.Fragment,{})};var on=(0,o.$j)((function(e,t){var n=e.page,r=e.promo,o=e.sections,i=e.promoState,a=t.sectionId,c=o.find((function(e){return e._id===a}))||{};return{_id:c._id,page:n,promo:r,promoState:i,type:c.type,layout:c.layout,gutter:c.gutter,textColor:c.textColor}}),(function(e){return{actions:(0,r.bindActionCreators)({initPromoJoinCount:i.Y},e)}}))(rn)},95355:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});
1var r=n(14416),o=n(67294),i=n(26113),a=n(58229),c=n(83141),s=n(98944),l=n(78773);function d(e){return Array.isArray(e)?e.filter((function(e){var t=e&&e.url,n=e&&e.title;return"string"===typeof t&&""!==t&&"/"!==t[t.length-1]&&"string"===typeof n&&""!==n.trim()})):[]}var u=n(85893);var p=function(e){var t=e._id,n=e.data,r=e.textColor,p=e.query.isEditor,v=e.renderSettingButton,g=void 0===v?function(){return!1}:v,x=d(n),y=(0,u.jsx)("ul",{className:(0,i.iv)(f,{color:r}),children:x.map((function(e,t,n){var r=e.title,a=e.url;return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsx)("li",{className:(0,i.iv)(h),children:(0,u.jsx)(l.Z,{href:"https://".concat(a),style:m,children:r})}),t!==n.length-1&&"/"]},a)}))});return(0,u.jsxs)(a.Z,{sectionId:t,wrapperType:"nav",children:[p&&g(t),(0,u.jsx)(c.Z,{sectionId:t,isEditor:p,children:(0,u.jsx)(s.Z,{sectionId:t,layout:"fit",children:y})})]})},f={margin:0,padding:".5rem"},h={display:"inline-block",margin:".2rem .5rem"},m={textDecoration:"none"};var v=(0,r.$j)((function(e,t){var n=t.sectionId,r=e.sections.find((function(e){return e._id===n}))||{};return{_id:r._id,data:r.data,textColor:r.textColor}}))(p)},55491:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(14416),o=n(59499),i=(n(67294),n(16801)),a=n(4730),c=n(74806),s=n(26113),l=n(2475),d=n(68250),u=n(85893);function p(e){var t=e.href;return(0,u.jsxs)("a",{href:t,className:(0,s.iv)(g),target:"_blank",rel:"noopener nofollow",children:["powered by ",(0,u.jsx)("span",{children:"feversocial"})]})}var f=function(e){var t=e.type,n=e.content,r=e.poweredByLink;return(0,u.jsx)("div",{children:"hidden"!==t&&(0,u.jsxs)("div",{className:(0,s.iv)(h,l.Kw),children:["normal"===t&&(0,u.jsx)("div",{className:"pure-u-1 pure-u-lg-3-4 pure-u-xl-7-12",children:(0,u.jsxs)("div",{className:"pure-g",children:[(0,u.jsx)("div",{className:"pure-u-1 pure-u-md-17-24 pure-u-lg-17-24 pure-u-xl-17-24",style:m,children:n}),(0,u.jsx)("div",{className:"pure-u-1 pure-u-md-7-24 pure-u-lg-7-24 pure-u-xl-7-24 ".concat((0,s.iv)(v,l.Kw)),children:(0,u.jsx)(p,{href:r})})]})}),"default"===t&&(0,u.jsx)(p,{href:r})]})})},h={borderTop:"3px solid ".concat(d.I),color:d.L,background:d.F,padding:"1rem",marginBottom:0},m={fontSize:"0.875rem",lineHeight:"1.3",fontFamily:'"Open Sans", "Helvetica", "Roboto", "Arial","PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei","Hiragino Sans GB", sans-serif'},v={"@media(max-width: 480px)":{marginTop:"1rem",justifyContent:"flex-end"}},g={fontSize:"14px",fontWeight:"500",color:"#3e3e3e","& span":{fontWeight:"500",color:d.t}},x=["content","intl","sponsorName","isNewPromotion","newPromotionInfo"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w=(0,c.ZP)((function(e){var t=e.content.text,n=void 0===t?"":t,r=e.intl,o=e.sponsorName,i=e.isNewPromotion,c=e.newPromotionInfo,s=(0,a.Z)(e,x),l=!1;if(c){var d=c.promoSetting,p=(d=void 0===d?{}:d).Promotions;l=1===(p=void 0===p?{}:p).loginMethod}var h=n;return i&&(h=r.formatMessage({id:l?"label.footer.disclaimer.fb":"label.footer.disclaimer.general",defaultMessage:""},{sponsorName:o})),(0,u.jsx)(f,b(b({},s),{},{content:h}))}));function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEac
1h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var S=function(e){var t=e.footer,n=e.children,r=e.poweredByLink,o=e.promoLocale,a=e.promoLangJson,c=e.isNewPromotion,s=e.newPromotionInfo,l=e.sponsorName,d=(0,u.jsx)(w,O(O({},t),{},{sponsorName:l,poweredByLink:r,isNewPromotion:c,newPromotionInfo:s}));return c&&(d=(0,u.jsx)(i.Z,{locale:o,messages:a,children:d})),(0,u.jsxs)("div",{children:[n,d]})},Z=["events.kenting.caesarpark.com.tw","www.hvc.com.tw"];var P=(0,r.$j)((function(e){var t=e.page,n=t.headerFooter,r=t.footer,o=t.domain,i=t.pageId,a=t.sponsor,c=(a=void 0===a?{}:a).name,s=e.promo.uuid,l=Boolean(s),d="https://info.feversocial.com/tw";return d+="?utm_source=".concat(o,"&utm_medium=page_").concat(i,"&utm_campaign=poweredby"),{headerFooter:null!==n&&void 0!==n?n:Z.includes(o),footer:r,poweredByLink:d,isNewPromotion:l,sponsorName:c}}))(S)},83141:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var r=n(14416),o=n(59499),i=n(67294),a=n(26113),c=n(38529),s=n(70131),l=n(98359),d=n(36796),u=n(8239),p=n(39465),f=n(36966),h=n(85893);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var g={position:"relative",":before":{content:" ",display:"table"},":after":{content:" ",display:"table"}},x=function(e){return{position:"relative",":before":v({content:" "},(0,f.ak)(e))}},y=function(e){return{width:"100%",height:"100%",position:"relative","& .react-parallax-background-children":{height:"100%",transform:e?"":"translate3d(-50%, 0px, 0px) !important"},"& .react-parallax-content":{width:"inherit",height:"inherit"}}},b={width:"100%",height:"100%",position:"absolute",top:0,overflow:"hidden"},w={width:"100vw"};var j=(0,r.$j)((function(e,t){var n=t.isEditor,r=t.sectionId,o=e.sections.find((function(e){return e._id===r}))||{},i=o.bgType,a=o.bgColor,c=o.bgGradientColor,s=void 0===c?{}:c,l=o.fitScreen,d=o.coverMask,u=o.bgCoverUrl,p=o.bgMobileUrl,f=o.bgVideoUrl,h=o.bgLottieUrl,m=o.bgMobileLottieUrl,v=o.bgHtmlUrl,g=o.textColor,x="cover"===i||"video"===i;return{type:i,color:a,gradientColor:"linear-gradient(".concat(s.deg,"deg, ").concat(s.start,", ").concat(s.end,")"),fitScreen:l,coverMask:d,bgImageUrl:u,bgImageMobileUrl:p,bgVideoUrl:f,bgLottieUrl:h,bgMobileLottieUrl:m,bgHtmlUrl:v,textColor:g,isParallax:x&&l,isLazyLoad:x&&!n}}))((function(e){var t=e.type,n=e.children,r=e.color,o=e.gradientColor,f=e.fitScreen,m=e.coverMask,v=e.isLazyLoad,j=e.isParallax,O=e.bgImageUrl,S=e.bgImageMobileUrl,Z=e.bgVideoUrl,P=e.bgLottieUrl,k=e.bgMobileLottieUrl,C=e.bgHtmlUrl,I="gradient"===t&&{background:o},D=(0,h.jsx)("div",{});"cover"===t&&(O||S)?D=v?(0,h.jsx)(s.df,{triggerOnce:!0,children:function(e){var t=e.inView,n=e.ref;return(0,h.jsx)(l.Z,{imgMobileUrl:S,imgUrl:O,forwardRef:n,isLazyRender:!t})}}):(0,h.jsx)(l.Z,{imgMobileUrl:S,imgUrl:O}):"video"===t&&Z?D=v?(0,h.jsx)(s.df,{triggerOnce:!0,children:function(e){var t=e.inView,n=e.ref;return(0,h.jsx)(d.Z,{videoUrl:Z,forwardRef:n,isLazyRender:!t,style:w})}}):(0,h.jsx)(d.Z,{videoUrl:Z,style:w}):"lottie"===t&&(P||k)?D=(0,h.jsx)(u.Z,{lottieUrl:P,lottieMobileUrl:k}):"html"===t&&C&&(D=(0,h.jsx)(p.Z,{htmlUrl:C}));var R=(0,h.jsx)("div",{className:(0,a.iv)(x(m)),children:(0,h.jsx)("div",{className:(0,a.iv)({position:"relative",":before":{content:" ",display:"table"},":after":{content:" ",display:"table"}}),children:n})}),F=(0,h.jsx)("div",{className:(0,a.iv)({minWidth:"100vw",height:"inherit"}),children:D});return(0,h.jsx)("div",{className:(0,a.iv)(g,{backgroundColor:r},I),children:j?(0,h.jsxs)(c.Parallax,{className:"".concat((0,a.iv)(y(f))),strength:200,children:[(0,h.jsx)(c.Backgroun
1d,{children:F}),R]}):(0,h.jsxs)(i.Fragment,{children:[(0,h.jsx)("div",{className:(0,a.iv)(b),children:F}),R]})})}))},98944:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(14416),o=(n(67294),n(26113)),i=n(47940),a=n(85893);var c=function(e){return{minHeight:e?"100vh":"64px",display:"flex",flexWrap:"nowrap",flexDirection:"row",justifyContent:"center",alignItems:"center"}};var s=(0,r.$j)((function(e,t){var n=t.sectionId,r=t.layout,o=e.sections.find((function(e){return e._id===n}))||{},i=o.fitScreen,a=o.layout;return{fitScreen:i,layout:r||a}}))((function(e){var t=e.children,n=e.fitScreen,r=e.layout;return(0,a.jsx)("div",{className:"".concat((0,o.iv)(c(n))," ").concat(n?"fix-ie-center":""),children:(0,a.jsx)("div",{className:"".concat((0,i.o)(r)),children:t})})}))},58229:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(14416),o=n(59499),i=n(4730),a=(n(67294),n(26113)),c=n(57557),s=n.n(c),l=n(85893),d=["wrapperType","sectionType","children","customStyle","forwardRef"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={position:"relative"};var h=(0,r.$j)((function(e,t){var n=t.sectionId;return{sectionType:(e.sections.find((function(e){return e._id===n}))||{}).type}}))((function(e){var t=e.wrapperType,n=void 0===t?"section":t,r=e.sectionType,o=e.children,c=e.customStyle,u=void 0===c?"":c,h=e.forwardRef,m=void 0===h?function(){}:h,v=(0,i.Z)(e,d),g=n,x=s()(v,["sectionId","dispatch"]);return(0,l.jsx)(g,p(p({className:"".concat((0,a.iv)(f)," ").concat(u),"data-sectiontype":r,ref:m},x),{},{children:o}))}))},28882:function(e,t,n){"use strict";n.d(t,{Z:function(){return d},x:function(){return l}});var r=n(59499),o=n(16835),i=n(67294);function a(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){return e<=200?.85:1}function d(e){var t=i.useState({}),n=(0,o.default)(t,2),c=n[0],d=n[1],u=i.useRef(null);return i.useEffect((function(){if("undefined"!==typeof ResizeObserver){var t=new ResizeObserver((function(t){d((function(n){var o,i=!1,c=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n),d=a(t);try{for(d.s();!(o=d.n()).done;){var u=o.value,p=u.target.dataset.cardId;if(p){var f=u.contentRect.width,h=(e||l)(f);c[p]!==h&&(c[p]=h,i=!0)}}}catch(m){d.e(m)}finally{d.f()}return i?c:n}
1))}));return u.current=t,function(){t.disconnect(),u.current=null}}}),[e]),{bindResize:i.useCallback((function(e){return function(t){var n=u.current;n&&t&&(t.dataset.cardId=e,n.observe(t))}}),[]),getScaleStyle:i.useCallback((function(e){var t;return{"--scale":null!==(t=c[e])&&void 0!==t?t:1}}),[c])}}},84613:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var r=n(59499),o=n(67294),i=n(5152),a=n.n(i),c=n(14416),s=n(83866),l=n(50029),d=n(87794),u=n.n(d),p=n(53802),f=n(26163);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v="application/x.api.v1+json",g=(0,p.createMediaManagerFetcher)({transport:function(){var e=(0,l.Z)(u().mark((function e(t){var n,r,o,i,a,c,s,l,d=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.body,o=n.headers,i=n.signal,a=d.length>2?d[2]:void 0,e.next=4,(0,f.ec)(a,r,m({Accept:v,"Fever-Host":(0,f.nI)()},o));case 4:return c=e.sent,i&&(c.signal=i),e.next=8,(0,f.d7)("".concat(__FEVER_API_ENDPOINT__).concat(t),Promise.resolve(c));case 8:return s=e.sent,e.next=11,s.json().catch((function(){return null}));case 11:return l=e.sent,e.abrupt("return",{status:s.status,payload:l});case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),x=n(29992),y=n(85893);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j="MEDIA_MANAGER",O=a()((function(){return Promise.resolve().then(n.bind(n,53802)).then((function(e){return e.MediaManagerDialog}))}),{ssr:!1,loadableGenerated:{webpack:function(){return[null]}}});function S(e){var t=e.aspectRatio,n=e.enableRatioSelector,r=void 0!==n&&n,i=e.keepPrevRatio,a=void 0!==i&&i,l=e.sourceContext,d=e.mode,u=void 0===d?"single":d,p=e.onPick,f=e.onCancel,h=e.autoOpen,m=void 0!==h&&h,v=(0,c.I0)(),b=(0,c.v9)((function(e){var t,n,r;return null!==(t=null===(n=e.sponsor)||void 0===n?void 0:n.id)&&void 0!==t?t:null===(r=e.page)||void 0===r?void 0:r.sponsorId})),S=(0,o.useState)(!1),Z=S[0],P=S[1];(0,o.useEffect)((function(){m&&P(!0)}),[]);var k=window.__ENVIR__?window.__ENVIR__:"dev",C=(0,s.j)(k).IMG_PROXY_PATH,I=(0,o.useMemo)((function(){if(t)return w(w({aspectRatio:t},r&&{enableRatioSelector:!0}),a&&{keepPrevRatio:!0})}),[t,r,a]);return{isOpen:Z,openPicker:function(){return P(!0)},dialogElement:(0,y.jsx)(O,{open:Z,mode:u,cropConfig:I,sourceContext:l,fetcher:g,sponsorId:b,proxyBaseUrl:C,notifications:{success:function(e){return v((0,x.setSuccess)(j,e))},error:function(e){return v((0,x.setFailed)(j,e))}},onConfirm:function(e){if(e&&e[0]){var t,n=null!==(t=e[0].croppedUrl)&&void 0!==t?t:e[0].url;p&&p(n,e)}else f&&f();P(!1)},onClose:function(){P(!1),f&&f()}})}}},89392:function(e,t,n){"use strict";n.d(t,{fK:function(){return i},gJ:function(){return o},kQ:function(){return a},nC:function(){return r}});var r={display:"block",position:"relative",width:"100%",height:0,overflow:"hidden"},o={paddingTop:"56.25%"},i={paddingTop:"100%"},a={position:"absolute",display:"block",left:0,right:0,top:0,bottom:0,margin:"auto"}},61226:function(e,t,n){"use strict";n.d(t,{Do:function(){return b},Ym:function(){return x},ec:function(){return h},fS:function(){return w},m1:function(){return y},ng:function(){return v},ol:function(){return g},wq:function(){return m},yY:function(){return f}});var r=n(59499),o=n(4730),i=n(28583),a=n.n(i),c=n(68250),s=n(59177),l=["fColor","bdColor","bgColor","hColor","disabled"],d=["fColor","bdColor","bgColor","hColor","disabled"];function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?u(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={cursor:"pointer",outline:"none",":focus":{outline:"none"}},h=a()({},f,{padding:"0.625rem 1.5rem",textAlign:"center",fontSize:"1rem",borderRadius:"4px"}),m=a()({},f,{width:"max-content",padding:"0.5rem",fontSize:"0.875rem",textAlign:"center"}),v=a()({},f,{border:"none",color:"lightgrey",fontSize:"1em !important"}),g={position:"relative"},x={position:"absolute"},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fColor,n=void 0===t?c.M:t,r=e.bdColor,i=void 0===r?c.I:r,a=e.bgColor,d=void 0===a?c.E:a,u=e.hColor,f=void 0===u?c.t:u,h=e.disabled,m=void 0!==h&&h,v=(0,o.Z)(e,l);return p({backgroundColor:d,border:"1px solid ".concat(i),borderRadius:"4px",color:n,boxShadow:s.xF,transition:m?"initial":"border-color 300ms, color 300ms",cursor:m?"not-allowed":"pointer",":hover":{borderColor:f,color:f,backgroundColor:d},":active":{transform:m?"initial":"translateY(2px)",boxShadow:m?s.xF:"none"}},v)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fColor,n=void 0===t?c.E:t,r=e.bdColor,i=void 0===r?c.t:r,a=e.bgColor,l=void 0===a?c.t:a,u=e.hColor,f=void 0===u?"#C21E24":u,h=e.disabled,m=void 0!==h&&h,v=(0,o.Z)(e,d);return p({backgroundColor:l,border:"1px solid ".concat(i),borderRadius:"4px",color:n,boxShadow:s.xF,transition:m?"initial":"border-color 300ms, color 300ms",cursor:m?"not-allowed":"pointer",":hover":{borderColor:f,backgroundColor:f},":active":{transform:m?"initial":"translateY(2px)",boxShadow:m?s.xF:"none"}},v)},w=a()({padding:"0.5rem 2.0625rem",textAlign:"center",lineHeight:"21px",fontSize:"0.8125rem",borderRadius:"4px",outline:"none",":focus":{outline:"none"}})},8521:function(e,t,n){"use strict";n.d(t,{A:function(){return r},L:function(){return o}});var r={animation:"placeHolderAnimate 1.5s infinite",background:n(68250).I},o=function(e){return{margin:"".concat("full"===e?0:"1rem 0 1rem 0"),"@media(max-width: 480px)":{margin:0}}}},47940:function(e,t,n){"use strict";function r(e){switch(e){case"normal":return"pure-u-xl-7-12 pure-u-1";case"fit":return"pure-u-xl-5-6 pure-u-1";case"full":return"pure-u-xl-1 pure-u-1";default:return""}}function o(e){var t=e.layout,n=3;return"normal"===t?n=3:"fit"===t?n=4:"full"===t&&(n=5),n}n.d(t,{i:function(){return o},o:function(){return r}})},84646:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});var r={scrollbarWidth:"none",msOverflowStyle:"none","::-webkit-scrollbar":{display:"none"},"& *":{scrollbarWidth:"none",msOverflowStyle:"none"},"& *::-webkit-scrollbar":{display:"none"}}},55869:function(e,t,n){"use strict";function r(e){var t=e.data,n=e.slidesToShow;return{width:n<3?"100%":"\n        ".concat(1===t.length?"21.3rem":"","\n        ").concat(2===t.length?"42.6rem":"","\n        ").concat(3===t.length?"64rem":"","\n        ").concat(t.length>3&&3===n?"64rem":"","\n        ").concat(4===t.length&&n>3?"85rem":"","\n        ").concat(t.length>4&&n<5&&n>3?"85rem":"","\n        ").concat(t.length>4&&5===n?"106rem":"","\n        ").trim(),maxWidth:"100%","@media(max-width: 480px)":{width:"100%"},"& .slick-track":{margin:"".concat(1===t.length?"auto":"")}}}function o(e){var t=e.data,n=e.slidesToShow,r=e.pdCardTemplate,o=e.isMobile,i={width:n<3?"100%":"\n        ".concat(1===t.length?"27rem":"","\n        ").concat(2===t.length?"56rem":"","\n        ").concat(t.length>=3?"85rem":"","\n        ").trim()};return 2===r&&(i={width:n<3?"100%":"\n            ".concat(1===t.length?"21rem":"","\n            ").concat(2===t.length?"42rem":"","\n            ").concat(3===t.length?"63rem":"","\n            ").concat(t.length>=4?"85rem":"","\n            ").trim()}),3===r&&(i=o?{width:"95%"}:{width:"85rem"}),i.maxWidth="100%",i}function i(e){var t=e.data,n=e.layout;return{width:t?"\n        ".concat("normal"===n?"100%":"","\n        ").concat("fit"===n?"46%":"","\n        ").concat("full"===n?"30%":"","\n        ").trim():"100%","@media(max-width: 1279px)":{width:"normal"===n?"75%":null},"@media(max-width: 1024px)":{fontSize:"0.8rem"},"@media(max-width: 768px)":{width:"100%",fontSize:"1rem"}}}n.d(t,{Gn:function(){return r},wk:function(){return i},xL:function(){return o}})},44094:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(68250);function o(e,t){var n=(0,r.a1)(e).match(/,\s*([\d.]+)\)$/),o=n?parseFloat(n[1]):1;return(0,r.a3)(e,o*t)}},99668:function(e,t,n){"use strict";n.d(t,{DT:function(){return p},PE:function(){return m},RR:function(){return v},eV:function(){return h},fi:function(){return g},mu:function(){return u},xZ:function(){return f}});var r=n(27484),o=n.n(r),i=n(70178),a=n.n(i),c=n(29387),s=n.n(c),l=n(7124),d=n.n(l);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return o()(e).format(t)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new Date("".concat(e.replace(/\s/,"T"),"Z")).getTime()}function f(e){return Date.now()>=p(e)}function h(e){return Date.now()>=p(e)}function m(e,t){var n=o()(e);return Math.abs(n.diff(t,"day"))}function v(e,t){return o()(e).isBefore(o()(t))}function g(e,t){return t?o()(e).utc(!0).local().format(t):o()(e).utc(!0).local()}o().extend(a()),o().extend(s()),o().extend(d())},69652:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(16835);function o(e){return Object.entries(e).reduce((function(e,t){var n=(0,r.default)(t,2)[1],o=n.name,i=n.value;return i.trim()&&(e[o]=i),e}),{})}},26241:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case 1:return{margin:"0 auto 1rem auto",width:"248px",height:"80px","@media (max-width: 768px)":{width:"248px",height:"80px"}};case 2:return{width:"248px",height:"80px","@media (max-width: 768px)":{width:"160px",height:"56px"}};case 3:return{width:"248px",height:"80px",zIndex:95,"@media (max-width: 1024px)":{width:"160px",height:"56px"}};case 4:return{margin:"auto",width:t?"248px":"100%",height:"80px",zIndex:95,"@media (max-width: 768px)":{width:"160px",height:"56px"}};default:return{margin:"1rem auto",width:"280px",height:"90px"}}}n.d(t,{Z:function(){return r}})},96310:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});function r(e,t){return Math.max(t-e-16,200)}},92415:function(e){e.exports=function(e){if(/youtube/.test(e)||/youtu\.be/.test(e)){var t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);if(t&&11===t[2].length)return{type:"youtube",src:t[2]}}else if(/facebook/.test(e)){var n=e.match(/(\d+)\/?$/);if(n)return{type:"facebook",src:n[1]}}return e}},26968:function(e,t,n){"use strict";n.d(t,{oc:function(){return o},qe:function(){return r},yt:function(){return i}});var r=function(e){var t=e.slidesToShow,n=e.data,r=n.length<4&&t>2?n.length:t;return 4===n.length&&t>3?n.length:r},o=function(e){var t=e.slidesToShow,n=e.data,r=n.length>3||t<3&&n.length>1;return!(4===n.length&&t>
13)&&(!(5===n.length&&t>4)&&r)},i=function(e){var t=e.data,n=e.slidesToShow,r=e.dot,o=e.slide;return{arrows:!1,dots:r,dotsClass:"slick-dots custom-slick-dots",infinite:t.length>n,speed:500,slidesToShow:o,slidesToScroll:o,swipeToSlide:!0,autoplay:!0,pauseOnHover:!0,responsive:[{breakpoint:480,settings:{speed:500,dots:t.length>1,slidesToShow:1,slidesToScroll:1,infinite:t.length>3,autoplay:!0,centerMode:!0,centerPadding:"35px"}}]}}},7557:function(e,t){var n,r,o;r=[],n=function(){var e=function(e){return"getComputedStyle"in window&&"smooth"===window.getComputedStyle(e)["scroll-behavior"]};if(!("document"in window))return{};var t=function(t,n,r){var o;n=n||999,r||0===r||(r=9);var i=function(e){o=e},a=document.documentElement,c=function(){return t?t.scrollTop:window.scrollY||a.scrollTop},s=function(){return t?Math.min(t.offsetHeight,window.innerHeight):window.innerHeight||a.clientHeight},l=function(e){return t?e.offsetTop:e.getBoundingClientRect().top+c()-a.offsetTop},d=function(){clearTimeout(o),i(0)},u=function(r,o,l){if(d(),e(t||document.body))(t||window).scrollTo(0,r),l&&l();else{var u=c(),p=Math.max(r,0)-u;o=o||Math.min(Math.abs(p),n);var f=(new Date).getTime();!function e(){i(setTimeout((function(){var n=Math.min(((new Date).getTime()-f)/o,1),r=Math.max(Math.floor(u+p*(n<.5?2*n*n:n*(4-2*n)-1)),0);t?t.scrollTop=r:window.scrollTo(0,r),n<1&&s()+r<(t||a).scrollHeight?e():(setTimeout(d,99),l&&l())}),9))}()}},p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=l(e)-r;return u(o,t,n),o},f=function(e,t,n){var o=e.getBoundingClientRect().height,i=l(e),a=i+o,d=s(),f=c(),h=f+d;i-r<f||o+r>d?p(e,t,n):a+r>h?u(a-d+r,t,n):n&&n()},h=function(e,t,n,r){u(Math.max(l(e)-s()/2+(n||e.getBoundingClientRect().height/2),0),t,r)};return{setup:function(e,t){e&&(n=e),(0===t||t)&&(r=t)},to:p,toY:u,intoView:f,center:h,stop:d,moving:function(){return!!o},getY:c}},n=t();if("addEventListener"in window&&!e(document.body)&&!window.noZensmooth){"scrollRestoration"in history&&(history.scrollRestoration="manual",window.addEventListener("popstate",(function(e){e.state&&"scrollY"in e.state&&n.toY(e.state.scrollY)}),!1));var r=function(e,t){try{history.replaceState({scrollY:n.getY()},""),history.pushState({scrollY:t},"",window.location.href.split("#")[0]+e)}catch(r){}};window.addEventListener("load",(function(){var e=decodeURIComponent(window.location.hash);if(e){var t=e.slice(1),n=document.getElementById(t);if(n){var r=document.getElementById("zines-fixed-header"),o=r?r.getAttribute("data-height")||r.offsetHeight:0,i=n.offsetTop;window.scrollTo(0,i-o)}}})),window.addEventListener("click",(function(e){for(var t=e.target;t&&"A"!==t.tagName;)t=t.parentNode;if(!(!t||1!==e.which||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){var o=t.getAttribute("href")||"",i=document.getElementById("zines-fixed-header"),a=i?i.getAttribute("data-height")||i.offsetHeight:0,c=location.origin+location.pathname;if(0===o.indexOf("#")||c===o.split("#")[0])if("#"===o)e.preventDefault(),n.toY(0),r("",0);else{var s=t.hash.substring(1),l=document.getElementById(decodeURIComponent(s));l&&(e.preventDefault(),r("#".concat(s),n.to(l,null,null,Number(a))))}}}),!1)}return{createScroller:t,setup:n.setup,to:n.to,toY:n.toY,intoView:n.intoView,center:n.center,stop:n.stop,moving:n.moving}}(),void 0===(o="function"===typeof n?n.apply(t,r):n)||(e.exports=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.