(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8695],{88606:function(e,t,r){Promise.resolve().then(r.bind(r,36424)),Promise.resolve().then(r.bind(r,73286)),Promise.resolve().then(r.bind(r,30856)),Promise.resolve().then(r.t.bind(r,38173,23))},36424:function(e,t,r){"use strict";r.r(t),r.d(t,{beautyName:function(){return c},capitalize:function(){return d},classNames:function(){return i},getCallbackUrl:function(){return p},getRatingfromSubRating:function(){return f},getTitlewSub:function(){return l},imgLoader:function(){return o},productName:function(){return s},slugify:function(){return u},upperCase2Word:function(){return a}});var n=r(44785);let o=e=>{let{src:t,width:r,quality:n}=e;return(-1!==t.indexOf("://res.cloudinary.com/")?t.split("/v1/")[1]&&(t="https://cdn.shouldit.com/reviews/images/".concat(t.split("/v1/")[1])):-1!==t.indexOf("://shouldit.com/")&&(t=(t=t.replace("https://shouldit.com/wp-content/","https://cdn.shouldit.com/")).replace(/-\d{2,3}x\d{2,3}\./g,".")),1500===r)?t:"".concat(t,"?w=").concat(r,"&q=").concat(n||80)},i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")},a=e=>e.replace(/([A-Z][a-z])/g," $1").replace(/(^\w)/g,e=>e.toUpperCase()).trim(),l=e=>{let t=null==e?void 0:e.replace(/.*\`(.*)\`/g,"$1");return{title:null==e?void 0:e.replace("`"+(t||"")+"`",""),subTitle:t!==e?t:void 0}},c=(e,t)=>t?null==e?void 0:e.replace(/`(.*)`/g,"".concat(t," $1")):null==e?void 0:e.replace(/\`/g,""),s=e=>c(e).replace(/(Review|In\-depth)/ig,"").trim(),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.toString().toLowerCase().replace(/[^a-z0-9]+/g," ").split(" ").map(e=>e.replace(/^(the|on|in|at|of|a|an|and|to)$/g,"")).join(" ").trim().replace(/\s+/g,t)},d=e=>(e=a(e)).split(" ").map(e=>e.replace(/(^\w)/g,e=>e.toUpperCase())).join(" "),f=e=>e?parseFloat((Object.entries(e).reduce((e,t)=>{let[r,{percent:n,rating:o}]=t;return e+parseFloat(o)/10*parseFloat(n)},0)/10).toFixed(1)):null,p=e=>{let t=e?document.referrer:window.location.href;return t.includes("/login/")&&(t=n.Z.get("callbackUrl")||"/"),t.includes("/join/")&&(t=n.Z.get("callbackUrl")||"/"),t}},73286:function(e,t,r){"use strict";r.d(t,{default:function(){return l}});var n=r(57437),o=r(16463),i=r(2265),a=r(9109).lW;function l(e){let{value:t}=e,r=(0,i.useRef)(!1);return(0,o.useServerInsertedHTML)(()=>{if(r.current)return null;r.current=!0;let e=a.from(t,"base64").toString("utf8");return(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:e}},"schema-json-ld")}),null}},30856:function(e,t,r){"use strict";r.r(t),r.d(t,{MediaEl:function(){return m},MediasBox:function(){return d}});var n=r(51920),o=r(87029),i=r(93090),a=r(57437),l=r(2265),c=r(66648),s=r(36424),u=r(20357);let d=e=>{let{className:t,medias:r,width:n,sizes:o,thumbWidth:i}=e;return(null==r?void 0:r.length)?(null==r?void 0:r.length)===1?(0,a.jsx)("div",{className:"w-full flex gap-3 sm:gap-4 overflow-hidden ".concat(t),children:(0,a.jsx)(m,{media:r[0].media,width:n,sizes:o})}):(0,a.jsx)(f,{className:t,medias:r,width:n,sizes:o,thumbWidth:i}):null},f=e=>{let{className:t,medias:r,width:o,sizes:i,thumbWidth:c}=e,[d,f]=(0,l.useState)(0);return(0,a.jsxs)("div",{className:"overflow-hidden ".concat(t),children:[(0,a.jsx)(m,(0,n._)({media:r[d].media,width:o,sizes:i},0===d?{}:{loading:"eager"}),"media-".concat(d)),(0,a.jsx)("div",{className:(0,s.classNames)("flex items-center gap-2 py-2 px-2 bg-gray-50 overflow-x-auto",r.length<5?"md:justify-center md:gap-4":""),children:r.map((e,t)=>{let{media:r}=e;return(0,a.jsx)("figure",{onClick:()=>{u.env.NEXT_PUBLIC_PAYWALL||f(t)},className:(0,s.classNames)("paywall cursor-pointer border-2 shrink-0",d===t?"border-gray-400":"border-gray-200",u.env.NEXT_PUBLIC_PAYWALL?"blur-sm":""),children:(0,a.jsx)(p,{media:r,width:c||100})},"thumb-".concat(t))})})]})},p=e=>{let{media:t,width:r}=e,{imagePublicUrl:n,alt:o}=(null==t?void 0:t.data)||t||{};return n?(0,a.jsx)(c.default,{loader:s.imgLoader,src:n,alt:o,width:r,height:Math.round(1e3*r/1500),className:"my-0 aspect-[3/2] object-center object-cover"}):null},m=e=>{var{media:t,width:r,sizes:l,className:c="",captionInline:s=!0,loading:u="lazy"}=e,d=(0,i._)(e,["media","width","sizes","className","captionInline","loading"]);let{videoPublicUrl:f}=(null==t?void 0:t.data)||t||{};return f?(0,a.jsx)(h,(0,o._)((0,n._)({},d),{media:t,width:r,className:c,loading:u})):(0,a.jsx)(g,(0,o._)((0,n._)({},d),{media:t,width:r,sizes:l,className:c,captionInline:s,loading:u}))},h=e=>{let{media:t,width:r,className:n="",loading:o}=e,{imagePublicUrl:i,videoPublicUrl:l}=(null==t?void 0:t.data)||t;return(0,a.jsx)("div",{className:"paywall overflow-hidden bg-black ".concat(n," ").concat(u.env.NEXT_PUBLIC_PAYWALL?"blur cursor-pointer":""),children:(0,a.jsxs)("video",{preload:"none",autoPlay:"eager"===o,width:r,poster:i&&"".concat(i,"?w=").concat(r,"&q=75"),controls:!0,className:(0,s.classNames)("m-0 object-center object-cover aspect-[3/2]"),children:[(0,a.jsx)("source",{src:l}),"Sorry, your browser doesn't support embedded videos."]})})},g=e=>{let{media:t,width:r,sizes:i,className:d="",loading:f,captionInline:p=!0}=e,[m,h]=(0,l.useState)(!0),{imagePublicUrl:g,alt:v,caption:b,imageCaption:y,aspect:x,border:w,priority:j}=(null==t?void 0:t.data)||t||{};return g?(0,a.jsxs)("figure",{onClick:()=>{!u.env.NEXT_PUBLIC_PAYWALL&&p&&h(!m)},className:(0,s.classNames)("paywall relative z-10",u.env.NEXT_PUBLIC_PAYWALL?"blur cursor-pointer":"",p?"overflow-hidden ":"",d),children:[(0,a.jsx)(c.default,(0,o._)((0,n._)({},j?{priority:j}:{loading:f}),{loader:s.imgLoader,src:g,alt:v,width:r,height:Math.round(1e3*r/1500),className:(0,s.classNames)("my-0 object-center object-cover",w?"border":"","auto"===x?"":"square"===x?"aspect-[16/9] md:aspect-square":x?"aspect-".concat(x):"aspect-[3/2]",p?"":"overflow-hidden"),sizes:i.join(",")})),b?p?(0,a.jsx)("figcaption",{className:(0,s.classNames)("text-center absolute inset-x-0 bottom-0 text-white text-sm font-normal z-20 bg-gray-600/50 py-1 transform duration-300",m?"":"translate-y-full"),dangerouslySetInnerHTML:{__html:b||y}}):(0,a.jsx)("figcaption",{className:"text-center",dangerouslySetInnerHTML:{__html:b||y}}):null]}):null}},66648:function(e,t,r){"use strict";r.d(t,{default:function(){return o.a}});var n=r(55601),o=r.n(n)},20357:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(88081)},88081:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c=[],s=!1,u=-1;function d(){s&&n&&(s=!1,n.length?c=n.concat(c):u=-1,c.length&&f())}function f(){if(!s){var e=l(d);s=!0;for(var t=c.length;t;){for(n=c,c=[];++u<t;)n&&n[u].run();u=-1,t=c.length}n=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new p(e,t)),1!==c.length||s||l(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},55601:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return c},getImageProps:function(){return l}});let n=r(99920),o=r(80497),i=r(38173),a=n._(r(21241));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1500],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=i.Image}},function(e){e.O(0,[146,9109,2971,7023,1744],function(){return e(e.s=88606)}),_N_E=e.O()}]);