PageSourceSearch

https://www.oralb.co.uk/_next/static/chunks/3416.211b1713d1a404fa.js

js oralb.co.uk collected 2026-09-24 18:45:34 UTC 10,242 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3416],{43416:function(e,l,n){n.r(l),n.d(l,{PostPurchaseRegisterFormTest:function(){return L}});var t=n(29238),r=n.n(t),o=n(5152),s=n.n(o),i=n(67294),u=n(83253),a=n.n(u),c=n(67411),d=n(6895),v=n(99094),h=n(61806),b=n(77126),f=n(7872),p=n(85893),m=s()(function(){return Promise.all([n.e(7800),n.e(5408),n.e(4807),n.e(8269),n.e(1647),n.e(5934),n.e(3296),n.e(2647),n.e(2644),n.e(4972),n.e(245),n.e(7831),n.e(9569),n.e(8575),n.e(5900),n.e(2500),n.e(4858),n.e(4206),n.e(1692),n.e(2030),n.e(1512),n.e(2320),n.e(3767),n.e(159),n.e(5648),n.e(134),n.e(3243),n.e(1919),n.e(1554),n.e(5780),n.e(7347),n.e(4993),n.e(6745),n.e(9093),n.e(8598),n.e(9219),n.e(8160),n.e(6991),n.e(4204),n.e(4800),n.e(8181),n.e(4e3),n.e(1535),n.e(4902),n.e(8096),n.e(9047),n.e(2876),n.e(9561),n.e(8770),n.e(6725),n.e(3705),n.e(6045),n.e(7520),n.e(5302),n.e(2080),n.e(4945),n.e(5822),n.e(323),n.e(8247),n.e(9480),n.e(2681)]).then(n.bind(n,69647))},{loadableGenerated:{webpack:function(){return[69647]}}}),_=n(23493),g=s()(function(){return Promise.resolve().then(n.bind(n,50831))},{loadableGenerated:{webpack:function(){return[50831]}}}),x=s()(function(){return Promise.resolve().then(n.bind(n,66273))},{loadableGenerated:{webpack:function(){return[66273]}}}),y=s()(function(){return Promise.resolve().then(n.bind(n,23226))},{loadableGenerated:{webpack:function(){return[23226]}}}),j=function(e){var l,n,t,o,s,u,h,j,L,N,k,w,S,T,C,I,M,A,E,P,H,R,z,B,W,q,D,F,G,K=null==e?void 0:null==(o=e.document)?void 0:null==(s=o.fields)?void 0:s.title,O=null==e?void 0:null==(u=e.document)?void 0:null==(h=u.fields)?void 0:h.commonIcon,U=null==e?void 0:null==(j=e.document)?void 0:null==(L=j.fields)?void 0:L.modalLabelFirst,Y=null==e?void 0:null==(N=e.document)?void 0:null==(k=N.fields)?void 0:k.modalLabelSecond,Z=null==e?void 0:null==(w=e.document)?void 0:null==(S=w.fields)?void 0:S.closeModalLabel,J=null==e?void 0:null==(T=e.document)?void 0:null==(C=T.fields)?void 0:C.replacementBrushHeadLabel,Q=null==e?void 0:null==(I=e.document)?void 0:null==(M=I.fields)?void 0:M.brushHeads,V=null==e?void 0:null==(A=e.document)?void 0:null==(E=A.fields)?void 0:E.ariaLabelNext,X=null==e?void 0:null==(P=e.document)?void 0:null==(H=P.fields)?void 0:H.ariaLabelPrevious,$=null==e?void 0:null==(R=e.document)?void 0:null==(z=R.fields)?void 0:z.defaultSelectedBrushIndex,ee=null==e?void 0:null==(B=e.document)?void 0:null==(W=B.fields)?void 0:W.anchorId,el=null==e?void 0:null==(q=e.document)?void 0:null==(D=q.fields)?void 0:D.navLeftIcon,en=null==e?void 0:null==(F=e.document)?void 0:null==(G=F.fields)?void 0:G.navRightIcon,et=(0,i.useState)(!1),er=et[0],eo=et[1],es=(0,i.useState)(!1),ei=es[0],eu=es[1],ea=(0,i.useState)(0),ec=ea[0],ed=ea[1],ev=(0,i.useState)(0),eh=ev[0],eb=ev[1],ef=(0,i.useState)(0),ep=ef[0],em=ef[1],e_=(0,i.useState)($||0),eg=e_[0],ex=e_[1],ey=(0,i.useRef)(null),ej=(0,i.useRef)(null),eL=(0,i.useRef)(null),eN=(0,i.useRef)(null);(0,i.useEffect)(function(){eC()},[]),(0,i.useEffect)(function(){var e,l;eb(0),(null==eL?void 0:null==(e=eL.current)?void 0:e.scrollTo)?eL.current.scrollTo({left:0,behavior:"smooth"}):(null==eL?void 0:null==(l=eL.current)?void 0:l.scrollLeft)&&(eL.current.scrollLeft=0),ed(0),em(0),ew()},[eg]),(0,i.useEffect)(function(){var e=_(ew,100);return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),(0,i.useEffect)(function(){return window.addEventListener("scroll",eS),function(){window.removeEventListener("scroll",eS)}},[ep]);var ek=function(){return window.innerWidth<=v.gT.tabWidthStart?255:1020},ew=function(){if(window&&(null==eL?void 0:eL.current)){for(var e,l=eL.current.children,n=0,t=0;t<l.length;t++){var r=l[t],o=r.offsetWidth<225?225:r.offsetWidth,s=getComputedStyle(r);o+=parseInt(s.marginLeft,10)+parseInt(s.marginRight,10),n+=o}var i=Array.isArray(Q)&&Q.length>eg&&Q[eg],u=(null==i?void 0:null==(e=i.fields)?void 0:e.brushes)||[],a=ek();eb((null==u?void 0:u.length)%3>=1?Math.ceil(n/a):Math.round(n/a))}},eS=(0,i.useCallback)(function(){document.body.classList.contains("noScroll")||em(window.pageYOffset)},[]),eT=function(){eo(!1),eu(!1)},eC=function(){if(ey.current){var e=ey.current.querySelector("#openFirstLegalModal");e&&e.addEventListener("click",function(e){e.preventDefault(),eo(!0)});
1var l=ey.current.querySelector("#openSecondLegalModal");l&&l.addEventListener("click",function(e){e.preventDefault(),eu(!0)})}},eI=(0,i.useCallback)(function(e){if(eL.current){var l,n=Array.isArray(Q)&&Q.length>eg&&Q[eg],t=(null==n?void 0:null==(l=n.fields)?void 0:l.brushes)||[],r=ek(),o=e.target.scrollLeft/r,s=Math.ceil(o),i=o<s+.3?s:s+1;i=Math.max(0,i),ed(i=Math.min(t.length,i))}},[eL.current,Q,eg]),eM=(0,i.useCallback)(function(e){if(eL.current){var l=ek()*e;eL.current.scrollTo?eL.current.scrollTo({left:l,behavior:"smooth"}):eL.current.scrollLeft=l}},[]),eA=function(e){if((null==eN?void 0:eN.current)&&(null==eL?void 0:eL.current)){var l,n=eN.current.querySelector(".ob-dot-nav__item--active .ob-dot-nav__button"),t=parseInt((null==n?void 0:null==(l=n.dataset)?void 0:l.index)||"0",10),r=e.currentTarget.dataset.controlButton;"next"===r&&t+1<eh?t+=1:"prev"===r&&t-1>=0&&(t-=1);var o=eL.current.clientWidth*t;eL.current.scrollTo?eL.current.scrollTo({left:o,behavior:"smooth"}):eL.current.scrollLeft=o}};return(0,p.jsxs)("section",{className:"post-purchase-register",id:ee,children:[(0,p.jsx)(c.h,{onLeave:eT}),(0,p.jsxs)("div",{className:"ob-register js-modal-container",ref:ey,children:[(0,p.jsxs)("div",{className:"ob-form__layout ob-register__wrapper",children:[O&&(0,p.jsx)("div",{className:"ob-contentBlock-text-image",children:(0,p.jsx)(y,{image:O})}),(0,p.jsx)("h2",{className:"ob-form__title",dangerouslySetInnerHTML:{__html:r().sanitize(K||"")}}),(t=(null==(n=Array.isArray(Q)&&Q.length>eg&&Q[eg])?void 0:null==(l=n.fields)?void 0:l.brushes)||[],(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("p",{className:"ob-form__replace-head-description",children:J}),Array.isArray(Q)&&(0,p.jsx)("ul",{role:"tablist",className:"ob-post-purchase-register-result__brush-types",children:Q.map(function(e,l){var n,t=0===l?"ob-post-purchase-register-result__brush-type-left":l===Q.length-1?"ob-post-purchase-register-result__brush-type-right":"";return(0,p.jsx)("li",{role:"tab",onClick:function(){return ex(l)},className:"ob-post-purchase-register-result__brush-type ".concat(l===eg?"ob-post-purchase-register-result__active-brush-type":""," ").concat(t),tabIndex:0,onKeyPress:function(){},children:null==e?void 0:null==(n=e.fields)?void 0:n.brushTypeLabel},l)})}),Array.isArray(Q)&&(0,p.jsx)("ul",{role:"tablist",className:"ob-post-purchase-register-result-mobile__brush-types",children:Q.map(function(e,l){var n,t,o,s=l===eg?null==e?void 0:null==(n=e.fields)?void 0:n.brushTypeIcon:null==e?void 0:null==(t=e.fields)?void 0:t.brushTypeIconDisabled;return(0,p.jsxs)("li",{role:"tab",onClick:function(){return ex(l)},className:"ob-post-purchase-register-result-mobile__brush-type ".concat(l===eg?"ob-post-purchase-register-result-mobile__active-brush-type":""),tabIndex:0,onKeyPress:function(){},children:[s&&(0,p.jsx)(y,{className:"ob-post-purchase-register-result-mobile__icon",image:s}),(0,p.jsx)("span",{dangerouslySetInnerHTML:{__html:r().sanitize((null==e?void 0:null==(o=e.fields)?void 0:o.brushTypeLabelMobile)||"")}})]},l)})}),!(0,f.nK)(t)&&(0,p.jsxs)("div",{className:"ob-post-purchase-register-result__carousel",children:[(0,p.jsx)("ul",{className:"ob-post-purchase-register-result__product-list",onScroll:eI,ref:eL,children:t.map(function(e,l){var n,t,o,s,i,u,a=null==e?void 0:e.fields,c=null==e?void 0:null==(n=e.fields)?void 0:n.icon,v=null==c?void 0:null==(t=c.fields)?void 0:null==(o=t.asset)?void 0:null==(s=o.fields)?void 0:null==(i=s.file)?void 0:i.url,h=null==c?void 0:null==(u=c.fields)?void 0:u.alternateText,f=v&&d.ZP.buildContentfullImageUrlByHeight(v,"300"),m=null==a?void 0:a.buyNowCta,_=null==a?void 0:a.buyNowLink;return(0,p.jsxs)("li",{className:"ob-post-purchase-register-result__product-list-item",children:[(null==a?void 0:a.icon)&&(0,p.jsx)("img",{className:"ob-post-purchase-register-result__icon",src:(0,b.H)(f),alt:h}),(0,p.jsx)("div",{className:"ob-post-purchase-register-result__product-link-item",children:(0,p.jsx)("span",{children:null==a?void 0:a.title})}),(0,p.jsx)("p",{className:"ob-post-purchase-register-result__product-description",dangerouslySetInnerHTML:{__html:r().sanitize((null==a?void 0:a.description)||"")}}),m&&_&&(0,p.jsx)("div",{className:"ob-post-purchase-register-result__product-buynow",children:(0,p.jsx)(g,{tag:"a",className:"event_button_click shop-now-button",href:_,target:"_blank",dataActionDetail:m,children:m})})]},l)})}),eh>=1&&(0,p.jsxs)("div",{children:[(0,p.jsx)("button",{className:"ob-post-purchase-register-result__carousel--control-button","data-control-button":"prev","aria-label":X,onClick:eA,disabled:0===ec,type:"button",children:(0,p.jsx)("span",{children:(0,p.jsx)(y,{image:el})})}),(0,p.jsx)("button",{className:"ob-post-purchase-register-result__carousel--control-button","data-control-button":"next","aria-label":V,onClick:eA,disabled:ec===eh-1,type:"button",children:(0,p.jsx)("span",{children:(0,p.jsx)(y,{image:en})})})]}),Array.isArray(t)&&t.length>=1&&(0,p.jsx)("div",{ref:eN,children:(0,p.jsx)(m,{count:eh,onClick:eM,current:ec,color:"blue"})})]})]}))]}),(U||Y)&&(0,p.jsx)(a(),{isOpen:er||ei,style:{overlay:{backgroundColor:"none"},content:{position:"fixed",border:"none",top:"0",left:"0",right:"0",bottom:"0",padding:"0",marginRight:"0",height:"100%",background:"rgba(255, 255, 255, 0.5)",display:"flex",justifyContent:"center",alignItems:"center"}},onRequestClose:eT,closeTimeoutMS:250,overlayClassName:"event_button_click",portalClassName:"post-purchase-register-legal-modal",ref:ej,children:(0,p.jsxs)("div",{className:"ob-register__modal-container",children:[er&&U&&(0,p.jsx)("p",{dangerouslySetInnerHTML:{__html:r().sanitize(U)}}),ei&&Y&&(0,p.jsx)("p",{dangerouslySetInnerHTML:{__html:r().sanitize(Y)}}),(0,p.jsx)("button",{className:"event_close_window ob-modal-close",onClick:eT,"aria-label":Z,type:"button",children:(0,p.jsx)(x,{name:"close",size:"2.4"})})]})})]}),(0,p.jsx)(c.h,{onLeave:eT})]})};l.default=(0,h.Ui)(j);var L=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.