PageSourceSearch

https://www.grasset.fr/_next/static/chunks/6204.a103997ed11a8032.js

js grasset.fr collected 2026-10-02 03:40:22 UTC 3,664 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6204],{46204:function(e,n,o){o.r(n),o.d(n,{ReachFiveUi:function(){return v}});var t=o(66383),r=o(92228),i=o(52322),s=o(2784),a=o(46186),c=o(61837),l=o(60364),u=o(87685),d=o(76320),p=o(4620),f=o(96177),h=o(48834).lW;function m(){var e=(0,r.Z)(["\n  && {\n    background: ",";\n    border-radius: ",";\n    position: relative;\n    "," {\n      width: calc(100vw - 24px);\n    }\n    .IconWrapper {\n      position: absolute;\n      top: 0;\n      right: 0;\n      display: flex;\n      flex-direction: row;\n      justify-content: end;\n    }\n    .CloseIcon {\n      cursor: pointer;\n    }\n    .mentionLegal {\n      text-align: center;\n      font-size: 11px;\n      margin-bottom: ","px;\n    }\n  }\n"]);return m=function(){return e},e}var v=(0,d.ZP)((function(e){var n=e.className,o=e.handleClose,r=e.isProAccount,d=(0,l.Z)(),m=(0,p.useConnector)(),v=m&&"getClient"in m&&m.getClient(),g=(0,f.CG)(),w=(0,f.O0)(),y=m.getOptions(),b=(0,t.Z)(s.useState(!1),2),x=b[0],C=b[1],k=(0,s.useRef)(""),S=y.loginMethod.includes("dual_login"),M=y.loginMethod.includes("passwordless");return s.useEffect((function(){var e=function(e){var n=e.querySelector("form"),o=n?n.querySelector('button[type="submit"]'):null,t=document.createElement("div");if(t.classList.add("mentionLegal"),t.innerHTML=y.loginLegalNotice,window.matchMedia("(max-width: ".concat(d.breakpoints.values.sm-1,"px)")).matches&&(t.style.maxHeight="120px",t.style.overflowY="auto"),n&&o&&n.insertBefore(t,o),r&&S){var i,s,a=null===(s=null===(i=Array.from(document.querySelectorAll("a")))||void 0===i?void 0:i.find((function(e){return"Vous avez oubli\xe9 votre mot de passe ?"===e.textContent})))||void 0===s?void 0:s.parentElement;a&&(a.style.position="static",a.style.textAlign="center")}};v&&(null===y||void 0===y?void 0:y.endpoint)&&r&&S?(C(!1),null===v||void 0===v||v.showAuth({container:k.current,auth:{redirectUri:"".concat(y.endpoint,"/reach5/callback"),responseType:"code",state:h.from(JSON.stringify({origin:window.location.href,sid:g,editorKey:w})).toString("base64"),origin:"webfactory",requireRefreshToken:!0},onReady:function(){return e(k.current)},theme:null===y||void 0===y?void 0:y.theme.passwordlessModal,allowForgotPassword:!0,signupFields:["email","password","password_confirmation"],showLabels:!0,showRememberMe:!0,countryCode:"FR",socialProviders:[]})):v&&y.loginMethod&&(M||S)?(C(!1),v.showPasswordless({container:k.current,showSocialLogins:!0,auth:{redirectUri:"".concat(y.endpoint,"/reach5/callback"),responseType:"code",state:h.from(JSON.stringify({origin:window.location.href,sid:g,editorKey:w})).toString("base64"),origin:"webfactory",requireRefreshToken:!0},onReady:function(){return e(k.current)},showIntro:!0,theme:null===y||void 0===y?void 0:y.theme.passwordlessModal,i18n:{"passwordless.intro":"Saisissez votre email pour vous connecter.","passwordless.emailSent":"Vous venez de recevoir un email avec un lien pour vous connecter sur le site"}})):C(!0)}),[v,y,g,d]),(0,i.jsxs)(a.Z,{className:n,children:[(0,i.jsx)("div",{className:"IconWrapper",children:(0,i.jsx)(c.Z,{onClick:o,className:"CloseIcon",children:(0,i.jsx)(u.Z,{})})}),x?(0,i.jsxs)("div",{style:{padding:10},children:["Une erreur innatendue de configuration est survenue (loginMethod).",(0,i.jsx)("br",{}),"Merci de r\xe9essayer plus tard."]}):(0,i.jsx)("div",{ref:k})]})})).withConfig({componentId:"sc-e21dfd1-0"})(m(),(function(e){return e.theme.palette.surface.light}),(function(e){var n=e.theme;return"".concat(n.shape.borderRadius,"px")}),(function(e){return e.theme.breakpoints.down("xs")}),(function(e){return e.theme.spacing(1)}))}}]);

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.