"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[754],{8880:function(e,t,n){n.d(t,{Z:function(){return components_category_list}});var o=n(2784),r=n(2527),i=n(9499),l=n(2322);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t0,expanded:u,onExpandClick:function(){return s(function(e){return e===t?void 0:t})}}),d&&d.map(function(e){return(0,a.BX)(o.Fragment,{children:[(0,a.tZ)(CategoryBlock,{slug:e.slug,name:e.name,sx:{backgroundColor:"#f5f5f5"},textOnly:l,show:u},e.slug),e.children&&e.children.map(function(e){return(0,a.tZ)(CategoryBlock,{slug:e.slug,name:e.name,sx:{backgroundColor:"#f5f5f5"},textOnly:l,show:u},e.slug)})]},e.slug)})]},t)})})})}},6252:function(e,t,n){n.d(t,{Z:function(){return components_coupon_list}});var o,r,i=n(2527),l=n(1383),a=n(430),c=n(3e3),p=n(2784),s=n(9499),d=n(381),u=n.n(d),x=n(1653),f=n(1711);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t span":{display:"block"},"&:hover":{textDecoration:"none"}},children:[j===h.didWork&&(0,f.BX)(i.FlexBox,{sx:_objectSpread({flexDirection:["row",null,"column"],flexBasis:"100%",alignItems:"center",justifyContent:"space-between"},b),children:[(0,f.BX)(i.FlexBox,{sx:{pl:["8px",null,"0"],mb:[0,0,"2px"],fontSize:["2.5vw","11px","12px"]},children:[(0,f.tZ)("span",{style:{whiteSpace:"nowrap"},children:"Did code"}),(0,f.tZ)("div",{onClick:function(e){e.preventDefault(),e.stopPropagation(),u()(o),s(!0)},sx:{cursor:"pointer",color:"#7357e0",textDecoration:"underline",maxWidth:["160px",null,"90px"],overflow:"hidden",pl:"3px",pr:"3px",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o}),"work?"]}),(0,f.BX)(i.FlexBox,{sx:{flexDirection:"row",justifyContent:"space-between",pl:["2px",null,"0"],pr:["2px",null,"0"]},children:[(0,f.BX)("div",{alt:"Coupon did not work",disabled:!0===v||!1===v,onClick:function(e){e.preventDefault(),e.stopPropagation(),w(!1)},sx:_objectSpread(_objectSpread({},g),{},{color:"error",border:"2px solid white",borderColor:"flagRedHover",backgroundColor:"flagRedHover","&:hover":{backgroundColor:"white",borderColor:"#b71c1c"}}),children:[(0,f.tZ)(a.Tw,{sx:{color:"#b71c1c",fill:"#b71c1c"}}),(0,f.tZ)("span",{sx:{color:"#b71c1c"},children:"No"})]}),(0,f.BX)("div",{alt:"Coupon worked",disabled:!0===v||!1===v,onClick:function(e){e.preventDefault(),e.stopPropagation(),w(!0)},sx:_objectSpread(_objectSpread({},g),{},{color:"success",border:"2px solid white",borderColor:"flagGreenHover",backgroundColor:"flagGreenHover","&:hover":{backgroundColor:"white",borderColor:"#2e881c"}}),children:[(0,f.tZ)(a.nQ,{sx:{fill:"#2e881c"},stroke:"#2e881c"}),(0,f.tZ)("span",{sx:{color:"#2e881c"},children:"Yes"})]})]})]}),j===h.amountSaved&&(0,f.BX)(i.FlexBox,{sx:_objectSpread({flexDirection:["row",null,"column"],flexBasis:"100%",alignItems:"center",justifyContent:"space-between",height:["50px",null,"60px"]},b),children:[(0,f.tZ)(i.FlexBox,{sx:{pl:["8px",null,"0"],mt:[0,null,"8px"],fontSize:"12px",whiteSpace:"break-spaces"},children:"How much did you save?"}),(0,f.tZ)(i.FlexBox,{sx:{flexDirection:"column",justifyContent:"space-evenly",alignItems:"center",width:["50%",null,"95%"],height:["50px",null,"60px"],pr:["4px",null,"0"],mb:["0",null,"4px"]},children:(0,f.BX)(i.FlexBox,{sx:{lineHeight:1.15,position:"relative",":before":{position:"absolute",fontSize:[17,null,15],top:["6px",null,"5px"],content:'"$"',left:"6px"}},children:[(0,f.tZ)(i.Input,{sx:{width:"100%",borderLeft:"2px solid #000",borderTop:"2px solid #000",borderBottom:"2px solid #000",borderRight:"none",outline:0,p:0,pl:"20px",margin:0,minWidth:0,borderColor:"#565656",borderWidth:"1px",borderRadius:"5px 0 0 5px",boxShadow:"inset 16px 0 0 0 #E7E7ED",color:"#565656",textAlign:"left",fontSize:[17,null,15],height:["30px",null,"24px"]},placeholder:"0.00",pattern:"/^\\d+(\\.\\d{1,2})?$/",type:"number",autoFocus:!0,value:C,onChangeText:function(e){var t=e.target.value.indexOf("."),n=e.target.value;S(n=-1===t?n.slice(0,4):n.slice(0,t+3))}}),(0,f.tZ)("div",{sx:{m:0,p:"0px 10%",outline:0,cursor:"pointer",fontSize:12,lineHeight:[2.5,null,2],color:"white",fontWeight:500,backgroundColor:"#7357e0",border:"1px solid #565656",borderRadius:"0 5px 5px 0","&:hover":{backgroundColor:"#fff",color:"#7357e0"}},onClick:function(e){e.preventDefault(),e.stopPropagation(),function(){if(C){var e=parseFloat(C.replace(/[^0-9.]/g,""));if(e){var o="amount_saved";(0,x.F)(t,n,o,e),(0,c.A)(c.U.qaAnswer,{qid:o,value:e,deal_id:n})}B(h.thankYou),setTimeout(function(){l(!1)},2e3)}}()},children:"Submit"})]})})]}),j===h.thankYou&&(0,f.tZ)(i.FlexBox,{sx:_objectSpread({flexDirection:"column",flexBasis:"100%",alignItems:"center",justifyContent:"center"},b),children:(0,f.BX)(i.FlexBox,{sx:_objectSpread({justifyContent:"center",flexDirection:"column"},b),children:[(0,f.BX)("div",{children:["Thank You! ",v&&" \uD83D\uDE18"]}),!v&&(0,f.tZ)("div",{sx:{fontSize:"11px",fontWeight:400,whiteSpace:"nowrap"},children:"Your answer helps us improve"})]})})]})},m=n(6605),v=n(8165),w=n(2867),y=(0,v.F4)(o||(o=(0,l.Z)(["\n 10%, 90% { transform: translate3d(-1px, 0, 0); }\n 20%, 80% { transform: translate3d(2px, 0, 0); }\n 30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }\n 40%, 60% { transform: translate3d(4px, 0, 0); }\n"]))),C=(0,v.F4)(r||(r=(0,l.Z)(["\n 0% { transform: scale(1); }\n 20% { transform: scale(1.2); }\n 40% { transform: scale(0.9); }\n 60% { transform: scale(1.1); }\n 80% { transform: scale(0.95); }\n 100% { transform: scaleX(1); }\n"]))),coupon_old=function(e){var t,n=e.name,o=e.domain,r=e.store,l=e.logoUrl,s=e.dealId,d=e.animationOnLoad,h=e.anchor,g=e.lastInList,b=e.onDealClick,v=e.hideFlags,S=e.deal||(0,w.e)("deals.byId.".concat(s)),k=S.id,j=S.code,B=S.usedCount,O=S.successRate,Z=(0,p.useState)(!1),_=Z[0],D=Z[1],F=(0,p.useState)(!1),W=F[0],P=F[1],X=(0,p.useRef)(),z=r.coupon_button_text?r.coupon_button_text:"Show code";(0,p.useEffect)(function(){W&&setTimeout(function(){P(!1)},2e3)},[W]);var A="".concat(S.line1Pre||"","\n ").concat(S.line1Pre?" ":"","\n ").concat(S.description||"");return(0,f.BX)(f.HY,{children:[S.endDate&&(0,f.tZ)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"http://schema.org","@type":"SaleEvent",name:"".concat(S.description," at ").concat(r.name),description:"".concat(r.name," - ").concat(S.description),image:l,url:"https://www.skynko.com/".concat(r.slug),startDate:S.dateAdded,endDate:S.endDate,performer:{"@type":"Organization",name:r.name},eventStatus:"http://schema.org/EventScheduled",eventAttendanceMode:"http://schema.org/OnlineEventAttendanceMode",location:{"@type":"VirtualLocation",url:(0,m.Rz)(null==r?void 0:r.domain)},offers:{"@type":"Offer",availability:"http://schema.org/LimitedAvailability",price:"0",priceCurrency:"USD",validFrom:S.dateAdded,url:"https://www.skynko.com/".concat(r.slug)}})}}),(0,f.BX)(i.FlexBox,{sx:{flexDirection:["column",,"row"],justifyContent:"space-between",fontSize:"14px",fontWeight:300,cursor:"pointer",backgroundColor:"#f8f8f8",borderRadius:"10px",marginBottom:g?"0":"10px","&:hover":{animation:[null,null,"".concat(y," .82s cubic-bezier(.36,.07,.19,.97) both")],transform:"translate3d(0,0,0)",backfaceVisibility:"hidden",perspective:"1000px"}},id:h||k,ref:X,onClick:function(){if(u()(j),(0,c.A)(c.U.showDeal,{dealCode:j}),(0,x.F)(r.slug,k,"used",1,j),b){b();return}},children:[(0,f.BX)(i.FlexBox,{sx:{flexDirection:"row",paddingLeft:"12px",paddingTop:"12px"},children:[(0,f.tZ)(i.Image,{src:l,alt:"".concat(o," logo"),width:"50",height:"50",sx:{borderRadius:"5px",minWidth:["36px",null,"60px"],minHeight:["36px",null,"60px"]},imageStyles:{borderRadius:"5px",width:["36px",null,"60px"],height:["36px",null,"60px"]}}),(0,f.tZ)("div",{sx:{marginLeft:"10px",display:["block",null,"none"]},children:!v&&S.flag?(0,f.BX)(f.HY,{children:[(0,f.BX)("span",{sx:{display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"10px",padding:"2px 7px 3px 2px",textDecoration:"none",fontWeight:500,color:"flagGreenText"===S.flag.textColor?"#00964F":"#307EF4",backgroundColor:"flagGreen"===S.flag.color?"#A8FFD3":"#DDEBFF"},children:["New Coupon"===S.flag.label?(0,f.tZ)(a.KN,{}):(0,f.tZ)(a.jt,{}),(0,f.tZ)("span",{sx:{marginLeft:"5px"},children:S.flag.label})]}),S.flag.extraLabel&&(0,f.tZ)("span",{sx:{display:"block",marginLeft:"3px",marginTop:"3px"},children:S.flag.extraLabel})]}):(0,f.BX)("div",{sx:{textTransform:"uppercase"},children:[n," Coupon"]})})]}),(0,f.BX)(i.FlexBox,{sx:{flexDirection:"column",width:"100%",margin:["2px 0 8px 0",null,"8px 0 8px 12px"]},children:[(0,f.tZ)("div",{sx:{display:["none",null,"block"]},children:!v&&S.flag?(0,f.BX)("span",{sx:{marginTop:"1px",marginBottom:["0px",null,"4px"]},children:[(0,f.BX)("span",{sx:{borderRadius:"10px",padding:"1px 7px 3px 2px",textDecoration:"none",fontWeight:500,color:"flagGreenText"===S.flag.textColor?"#00964F":"#307EF4",backgroundColor:"flagGreen"===S.flag.color?"#A8FFD3":"#DDEBFF"},children:[(0,f.tZ)("span",{sx:{verticalAlign:"middle",marginRight:"5px"},children:"New Coupon"===S.flag.label?(0,f.tZ)(a.KN,{}):(0,f.tZ)(a.jt,{})}),(0,f.tZ)("span",{children:S.flag.label})]}),S.flag.extraLabel&&(0,f.tZ)("span",{sx:{marginLeft:"10px"},children:S.flag.extraLabel})]}):(0,f.BX)(f.HY,{children:[(0,f.BX)("div",{sx:{textTransform:"uppercase",display:"inline-block"},children:[n," Coupon"]}),S.flagText&&(0,f.tZ)("div",{sx:{backgroundColor:S.flagColor,marginLeft:"5px",borderRadius:"4px",color:"white",padding:"4px",display:"inline-block",fontSize:"16px"},children:S.flagText})]})}),(0,f.tZ)(i.H2,{sx:{textTransform:"uppercase",margin:["0 0 0 12px",null,"2px 0 0 0"],lineHeight:"1.2",fontSize:["18px",,"22px"]},children:A}),(0,f.BX)(i.FlexBox,{sx:{flexDirection:["row",null,"row"],fontSize:"13px",margin:["3px 0 0 12px",null,"3px 0 0 0"]},children:[(0,f.BX)("div",{sx:{marginRight:"20px"},children:[(0,f.tZ)("span",{sx:{fontWeight:500,marginRight:"5px"},children:"Coupon used:"}),(0,f.tZ)("span",{children:B>=0?"".concat(B.toLocaleString()," times"):"-"})]}),(0,f.BX)("div",{children:[(0,f.tZ)("span",{sx:{fontWeight:500,marginRight:"5px"},children:"Success rate:"}),(0,f.tZ)("span",{children:O?"".concat(Math.ceil(100*O),"%"):"-"})]})]})]}),(0,f.BX)(i.Button,{sx:{margin:"12px",marginTop:[0,null,"12px"],maxWidth:["default",null,"200px"],minWidth:["default",null,"200px"],height:["46px",null,"56px"],padding:"0",position:"relative",fontSize:[20,null,25],fontWeight:600,borderColor:"#5439bd",boxShadow:"-3px 3px #5439bd",animation:d&&["".concat(C," 2s ease-out 0s 1"),null,"none"],"&:after":{visibility:W?"visible":"hidden",opacity:W?.9:0,position:"absolute",content:'"Code copied"',top:W?["-70%","-70%","-53%"]:"-35%",left:0,right:0,width:"120px",margin:"auto",color:"white",fontSize:"14px",fontWeight:600,borderWidth:"0px",borderStyle:"solid",borderColor:"#5439bd",borderRadius:"50px",padding:"3px 6px",backgroundColor:"brandPrimary",transition:"visibility 0.2s ease, top 0.2s ease, opacity 0.2s ease"},"&:active":{boxShadow:"-2px 2px #5439bd",transform:"translateY(2px)"}},children:[_&&(0,f.tZ)(coupon_qa_new,{slug:r.slug,dealId:k,code:S.code,description:S.description,setShowQA:D,setShowCopied:P,couponWord:r.couponWord}),!_&&(0,f.tZ)(f.HY,{children:r.monetisedSource?z:(0,f.BX)(f.HY,{children:[(0,f.tZ)("div",{sx:{fontSize:10,fontWeight:400},children:"Copy code"}),(0,f.tZ)("div",{sx:{padding:"0px 0px",whiteSpace:"nowrap",overflow:"hidden",maxWidth:"100%",textTransform:"uppercase",fontSize:["13px","16px","22px"]},children:(t=S.code).length>10?t.slice(0,10)+"...":t.length<4?t+"...":t.length<6?t.slice(0,t.length-1)+"...":t.slice(0,t.length-3)+"..."})]})})]})]})]})},components_coupon_list=function(e){var t=e.coupons,n=e.onDealClick,o=e.hideFlags,r=e.children;return(0,f.BX)(i.Section,{backgroundColor:"background",sx:{paddingBottom:"30px"},children:[r&&(0,f.tZ)(i.H2,{sx:{marginBottom:["15px",null,"30px"],px:["15px"]},children:r}),(0,f.tZ)(i.Card,{sx:{overflow:"visible",border:"none"},children:t.map(function(e,r){var i=e.store,l=e.deal;return(0,f.tZ)(coupon_old,{dealPosition:r+1,slug:i.slug,store:i,name:i.name,domain:i.domain,logoUrl:i.logo,deal:l,dealId:l.id,lastInList:r>=t.length-1,onDealClick:function(){return n(e)},hideFlags:o},l.id)})})]})}},1653:function(e,t,n){n.d(t,{F:function(){return submitAction}});var o=n(29),r=n(7794),i=n.n(r);function submitAction(e,t,n,o){return _submitAction.apply(this,arguments)}function _submitAction(){return(_submitAction=(0,o.Z)(i().mark(function _callee(e,t,n,o){var r,l,a,c=arguments;return i().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=c.length>4&&void 0!==c[4]?c[4]:0,l=c.length>5?c[5]:void 0,a="/api/submit-action?slug=".concat(e,"&deal_id=").concat(t,"&type=").concat(n,"&value=").concat(o),!isNaN(r)&&r>0&&(a+="&deal_position=".concat(r)),l&&(a+="&deal_code=".concat(l)),i.prev=5,i.abrupt("return",fetch(a));case 9:i.prev=9,i.t0=i.catch(5);case 11:case"end":return i.stop()}},_callee,null,[[5,9]])}))).apply(this,arguments)}},6605:function(e,t,n){function addProtocol(e){if(!e||e.startsWith("data:image")||"function"!=typeof e.startsWith)return e;let t=e.startsWith("http://")||e.startsWith("https://")?e:`https://${e}`;return t.replace("////","//")}n.d(t,{Rz:function(){return addProtocol}}),n(9644),n(3348)}}]);