PageSourceSearch

https://www.oralb.co.uk/_next/static/chunks/4276.c2bd6bee5dcd1e62.js

js oralb.co.uk collected 2026-09-24 18:45:43 UTC 8,746 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4276],{44276:function(e,i,t){t.r(i),t.d(i,{PostPurchaseWriteReviewSectionTest:function(){return N}});var n=t(20968),o=t.n(n),l=t(29238),d=t.n(l),s=t(5152),r=t.n(s),a=t(67294),c=t(83253),u=t.n(c),v=t(99094),p=t(61806),m=t(7872),w=t(85893);function h(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function b(e){for(var i=1;i<arguments.length;i++){var t=null!=arguments[i]?arguments[i]:{};i%2?h(Object(t),!0).forEach(function(i){o()(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}var f=r()(function(){return Promise.resolve().then(t.bind(t,23226))},{loadableGenerated:{webpack:function(){return[23226]}}}),g=r()(function(){return Promise.resolve().then(t.bind(t,34096))},{loadableGenerated:{webpack:function(){return[34096]}}}),_=r()(function(){return Promise.resolve().then(t.bind(t,50831))},{loadableGenerated:{webpack:function(){return[50831]}}}),x=r()(function(){return Promise.resolve().then(t.bind(t,66273))},{loadableGenerated:{webpack:function(){return[66273]}}}),j=function(e){var i,t,n,o,l,s,r,c,h,j,N,k,S,y,R,C,O,P,I,E,T,W,B,D,L,q,z,A,G,H,M,Q,F,J,K,U,V,X,Y,Z=null==e?void 0:null==(i=e.document)?void 0:null==(t=i.fields)?void 0:t.textImageIcon,$=null==e?void 0:null==(n=e.document)?void 0:null==(o=n.fields)?void 0:o.title,ee=null==e?void 0:null==(l=e.document)?void 0:null==(s=l.fields)?void 0:s.bodyText,ei=null==e?void 0:null==(r=e.document)?void 0:null==(c=r.fields)?void 0:c.writeReviewCta,et=null==e?void 0:null==(h=e.document)?void 0:null==(j=h.fields)?void 0:j.writeReviewCtaDataActionDetail,en=null==e?void 0:null==(N=e.document)?void 0:null==(k=N.fields)?void 0:k.staticReviewContent,eo=null==e?void 0:null==(S=e.document)?void 0:null==(y=S.fields)?void 0:y.writeAReviewSectionBg,el=null==e?void 0:null==(R=e.document)?void 0:null==(C=R.fields)?void 0:C.writeReviewSectionBackgroundMobile,ed=null==e?void 0:null==(O=e.document)?void 0:null==(P=O.fields)?void 0:P.bvWidgetIcon,es=null==e?void 0:null==(I=e.document)?void 0:null==(E=I.fields)?void 0:E.bvWidgetTitle,er=null==e?void 0:null==(T=e.document)?void 0:null==(W=T.fields)?void 0:W.bvWidgetBody,ea=null==e?void 0:null==(B=e.document)?void 0:null==(D=B.fields)?void 0:D.seriesItems,ec=null==e?void 0:null==(L=e.document)?void 0:null==(q=L.fields)?void 0:q.checkmarkIcon,eu=null==e?void 0:null==(z=e.document)?void 0:null==(A=z.fields)?void 0:A.desktopBackgroundImage,ev=null==e?void 0:null==(G=e.document)?void 0:null==(H=G.fields)?void 0:H.mobileBackgroundImage,ep=null==e?void 0:null==(M=e.document)?void 0:null==(Q=M.fields)?void 0:Q.anchorId,em=null==e?void 0:null==(F=e.document)?void 0:null==(J=F.fields)?void 0:J.closeModalLabel,ew=null==ea?void 0:null==(K=ea[0])?void 0:null==(U=K.fields)?void 0:null==(V=U.productLinks)?void 0:null==(X=V[0])?void 0:null==(Y=X.fields)?void 0:Y.id,eh=(0,a.useState)(v.Kd.defaultWidth),eb=eh[0],ef=eh[1],eg=(0,a.useState)(!1),e_=eg[0],ex=eg[1],ej=(0,a.useState)(ew),eN=ej[0],ek=ej[1],eS=(0,a.useState)(!0),ey=eS[0],eR=eS[1],eC=eb<=v.gT.desktopViewStart;function eO(){ef(window.innerWidth)}(0,a.useEffect)(function(){(0,m.Io)(null==v.SR?void 0:v.SR.dropBtnClass,null==v.SR?void 0:v.SR.dropdownContant,null==v.SR?void 0:v.SR.dropdownClass)},[]),(0,a.useEffect)(function(){return window.addEventListener("resize",eO),eO(),function(){window.removeEventListener("resize",eO)}},[]),(0,a.useEffect)(function(){(0,m.Jy)()},[]),(0,p.LI)(function(){eR(!1)},[]);var eP=function(){ex(!0)},eI=function(){ex(!1)},eE=function(){setTimeout(function(){var e=document.getElementsByClassName("bv-mbox-close");e&&e[0]&&e[0].addEventListener("click",function(){document.querySelector("body").style.overflow="visible"})},2e3)},eT=function(e){ek(e),setTimeout(function(){var e=document.getElementsByClassName(v.SR.WAR_POP_ID).length>0&&document.getElementsByClassName(v.SR.WAR_POP_ID)[0];e&&(document.querySelector("body").style.overflow="hidden",e.click(),eE())},500)};return(0,w.jsxs)("section",{className:"post-purchase-write-review-section",id:ep,children:[(0,w.jsx)(f,{image:eC?el:eo,children:(0,w.jsx)("div",{className:"post-purchase-write-review-section__textContent",children:(0,w.jsxs)("div",{className:"post-purchase-write-review-section__textContent-inner",children:[Z&&(0,w.jsx)("div",{className:"post-purchase-write-review-section__text-image",children:(0,w.jsx)(f,{image:Z})}),(0,w.jsx)(g,{className:"post-purchase-write-review-section__title",whiteText:!0,tag:"h2",children:$}),(0,w.jsx)("p",{className:"post-purchase-write-review-section__body",children:ee}),(0,w.jsx)(_,{whiteTheme:!0,disabled:ey,className:"post-purchase-write-review-section__cta-write-review event_product_review",dataActionDetail:et,onClick:function(){return eP()},children:ei}),(0,w.jsx)("hr",{className:"post-purchase-write-review-section__divider"}),(0,w.jsx)("div",{className:"post-purchase-write-review-section__review-content",dangerouslySetInnerHTML:{__html:d().sanitize(en||"")}})]})})}),(0,w.jsx)(u(),{isOpen:e_,contentLabel:ep,aria:{modal:!0},portalClassName:"post-purchase-bv-widget",onRequestClose:eI,closeTimeoutMS:250,style:{overlay:{backgroundColor:"rgba(0, 0, 0, 0.5)"},content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",position:"absolute",background:"linear-gradient(to right bottom, #000421, #000421)",borderRadius:"0",fontSize:"1.1rem",lineHeight:"2.1rem",padding:"0",transform:eC?"translate(-50%, -47%)":"translate(-50%, -50%)",width:eC?"90%":"100%",minWidth:eC?"90%":"50%",maxWidth:eC?"100%":"900px",height:eC?"80vh":"auto",maxHeight:eC?"80vh":"90vh",overflowX:"hidden",border:"none"}},children:(0,w.jsxs)("div",{className:"post-purchase-bv-widget__wrapper",children:[(0,w.jsx)("button",{"aria-label":em,onClick:eI,className:"post-purchase-bv-widget__close-modal",type:"button",children:(0,w.jsx)(x,{name:v.SR.close,size:"1.4",color:v.gT.white})}),(0,w.jsx)("div",{className:"post-purchase-bv-widget__inner-wrapper",id:ep,children:(0,w.jsx)(f,{classname:"post-purchase-bv-widget__desktop-bg-img",image:eC?ev:eu,customStyles:{backgroundSize:"cover !important",backgroundRepeat:"no-repeat",padding:"0",minHeight:"590px"},children:(0,w.jsxs)("div",{className:"post-purchase-bv-widget__inner-text-wrapper",children:[(0,w.jsx)(f,{image:ed,className:"post-purchase-bv-widget__bv-widget-icon"}),(0,w.jsx)(g,{className:"post-purchase-bv-widget__title",children:es}),(0,w.jsx)("hr",{className:"post-purchase-bv-widget__divider"}),(0,w.jsx)("p",{className:"post-purchase-bv-widget__label-second-step",children:er}),(0,w.jsx)("div",{className:"post-purchase-bv-widget__series-container",children:null==ea?void 0:ea.map(function(e,i){var t,n,o,l,d="dropdown-".concat(i);return(0,w.jsxs)("div",{className:"post-purchase-bv-widget__series-item-wrapper",children:[(0,w.jsx)(f,{image:null==e?void 0:null==(t=e.fields)?void 0:t.image,className:"post-purchase-bv-widget__series-item-image"}),(0,w.jsxs)("div",{className:"post-purchase-bv-widget__dropdown",children:[(0,w.jsxs)("button",{tabIndex:0,className:"post-purchase-bv-widget__dropbtn",onClick:function(){return(0,m.C5)(d,null==v.SR?void 0:v.SR.dropdownClass)},children:[null==e?void 0:null==(n=e.fields)?void 0:n.name,(0,w.jsx)("i",{className:"post-purchase-bv-widget__down-arrow"})]}),(0,w.jsx)("div",{id:d,className:"post-purchase-bv-widget__dropdown-content",children:null==e?void 0:null==(o=e.fields)?void 0:null==(l=o.productLinks)?void 0:l.map(function(e,i){var t,n,o,l={},d=(null==e?void 0:null==(t=e.fields)?void 0:t.url)===v.SR.noSlug;return d&&(l.disabled=!0),(0,w.jsxs)("button",b(b({tabIndex:0,onClick:function(){var i;return eT(null==e?void 0:null==(i=e.fields)?void 0:i.id)},className:"post-purchase-bv-widget__dropdown-link event_product_review ".concat(d?"post-purchase-bv-widget__dropdown-link-disable":""),"data-action-detail":null==e?void 0:null==(n=e.fields)?void 0:n.title},l),{},{children:[(0,w.jsx)("span",{children:null==e?void 0:null==(o=e.fields)?void 0:o.title}),(0,w.jsx)(f,{image:ec,className:d?"post-purchase-bv-widget__dropdown-link-disable":""})]}),i)})})]})]},i)})})]})})}),(0,w.jsx)("div",{className:"post-purchase-bv-widget__war",children:eN&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)("div",{"data-bv-show":v.qQ.ratingSummary,"data-bv-product-id":eN}),(0,w.jsx)("div",{"data-bv-show":v.qQ.reviews,"data-bv-product-id":eN}),(0,w.jsx)("div",{"data-bv-show":v.qQ.questions,"data-bv-product-id":eN})]})})]})})]})};i.default=(0,p.Ui)(j);var N=j}}]);

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.