PageSourceSearch

https://www.petit-fernand.co.uk/RootCmp_CMS_PAGE__default.3fbd1b22779467deb06c.js

js petit-fernand.co.uk collected 2026-09-26 10:21:32 UTC 15,349 bytes, 73 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"/DFd":function(t,r,o){"use strict"
2var i=o("JPst"),a=o.n(i)()((function(t){return t[1]}))
3a.push([t.i,".richContent-root-Byp h1,\n.richContent-root-Byp h2,\n.richContent-root-Byp h3,\n.richContent-root-Byp h4,\n.richContent-root-Byp h5,\n.richContent-root-Byp h6 {\n    margin-bottom: 0.5rem;\n    line-height: 1.25;\n}\n\n.richContent-root-Byp h1 {\n    margin-top: 0.75rem;\n    font-size: 1.875rem;\n    font-weight: 400;\n}\n\n.richContent-root-Byp h2 {\n    margin-top: 1rem;\n    font-size: 1.5rem;\n    font-weight: 400;\n}\n\n.richContent-root-Byp h3 {\n    margin-top: 1rem;\n    font-size: 1.25rem;\n    font-weight: 400;\n}\n\n.richContent-root-Byp h4 {\n    margin-top: 1rem;\n    font-size: 1.125rem;\n    font-weight: 600;\n}\n\n.richContent-root-Byp h5 {\n    margin-top: 1rem;\n    font-size: 1rem;\n    font-weight: 600;\n}\n\n.richContent-root-Byp h6 {\n    margin-top: 1rem;\n    font-size: 0.875rem;\n    font-weight: 600;\n}\n\n.richContent-root-Byp p {\n    margin-bottom: 1rem;\n    line-height: 1.5;\n}\n\n.richContent-root-Byp p:last-child {\n    margin-bottom: 0;\n}\n\n.richContent-root-Byp img {\n    max-width: 100%;\n    margin: 1rem 0;\n}\n\n.richContent-root-Byp ol,\n.richContent-root-Byp ul {\n    padding-left: 1.5rem;\n    margin-top: 1rem;\n    margin-bottom: 1rem;\n    line-height: 1.5;\n}\n\n.richContent-root-Byp p + ol,\n.richContent-root-Byp p + ul {\n    margin-top: 0;\n}\n\n/* TODO @TW: cannot compose */\n.richContent-root-Byp ol {\n    /* composes: list-decimal from global; */\n    list-style-type: decimal;\n}\n\n/* TODO @TW: cannot compose */\n.richContent-root-Byp ul {\n    /* composes: list-disc from global; */\n    list-style-type: disc;\n}\n\n.richContent-root-Byp a {\n    text-decoration: underline;\n}\n\n.richContent-root-Byp blockquote {\n    margin: 1rem 0;\n    font-size: 1.25rem;\n    font-style: italic;\n}\n\n.richContent-root-Byp table {\n    width: 100%;\n    text-align: left;\n}\n\n.richContent-root-Byp pre {\n    padding: 1rem;\n    /* composes: border from global; */\n    /* composes: border-solid from global; */\n    /* composes: border-subtle from global; */\n    border: 1px solid rgb(var(--venia-global-color-border));\n    /* composes: bg-gray-900 from global; */\n    background: rgb(var(--venia-global-color-gray));\n}\n\n.richContent-root-Byp .cms-content-important {\n    padding: 1rem;\n    /* composes: border from global; */\n    /* composes: border-solid from global; */\n    /* composes: border-subtle from global; */\n    border: 1px solid rgb(var(--venia-global-color-border));\n    /* composes: bg-gray-900 from global; */\n    background: rgb(var(--venia-global-color-gray));\n    font-size: 1.125rem;\n}\n\n@media (min-width: 800px) {\n    .richContent-root-Byp h1 {\n        font-size: 3rem;\n    }\n\n    .richContent-root-Byp h2 {\n        font-size: 2.25rem;\n    }\n\n    .richContent-root-Byp h3 {\n        font-size: 1.875rem;\n    }\n\n    .richContent-root-Byp h4 {\n        font-size: 1.5rem;\n    }\n\n    .richContent-root-Byp h5 {\n        font-size: 1.125rem;\n    }\n\n    .richContent-root-Byp h6 {\n        font-size: 1rem;\n    }\n}\n",""]),a.locals={root:"richContent-root-Byp"},r.a=a},"8roP":function(t,r,o){"use strict"
4var i=o("JPst"),a=o.n(i)()((function(t){return t[1]}))
5a.push([t.i,".cms-root-hFv {\n    justify-content: center;\n    display: flex;\n    align-items: center;\n}\n@media (max-width: 768px) {\n    .cms-root-hFv {\n        margin: 8px;\n    }\n}\n\n.cms-heading-5TQ {\n\n    /* Medium */\n}\n\n.cms-root_empty-2EE,\n.cms-root_1column-8Hs,\n.cms-root_2columnsLeft-YDb,\n.cms-root_2columnsRight-Q-K,\n.cms-root_3columns-yZZ,\n.cms-root_cmsFullWidth-Z8s,\n.cms-root_categoryFullWidth-c6r,\n.cms-root_productFullWidth-i6f {\n}\n",""]),a.locals={root:"cms-root-hFv",heading:"cms-heading-5TQ mb-2 mt-4 text-center text-3xl md_mb-10 md_text-4xl",root_empty:"cms-root_empty-2EE cms-root-hFv",root_1column:"cms-root_1column-8Hs cms-root-hFv",root_2columnsLeft:"cms-root_2columnsLeft-YDb cms-root-hFv",root_2columnsRight:"cms-root_2columnsRight-Q-K cms-root-hFv",root_3columns:"cms-root_3columns-yZZ cms-root-hFv",root_cmsFullWidth:"cms-root_cmsFullWidth-Z8s cms-root-hFv",root_categoryFullWidth:"cms-root_categoryFullWidth-c6r cms-root-hFv",root_productFullWidth:"cms-root_productFullWidth-i6f cms-root-hFv"},r.a=a},H5MO:function(t,r,o){"use strict"
6var i=o("QzYC"),resolveLinkProps=function(t){var r={}
7try{var o=new URL("https://www.petit-fernand.co.uk/"),i=new URL(t,o)
8o.host!==i.host?r.href=t:r.to=i.pathname+i.search}catch(o){r.href=t}return r}
9function _createForOfIteratorHelper(t,r){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]
10if(!o){if(Array.isArray(t)||(o=function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r)
11var o={}.toString.call(t).slice(8,-1)
12return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){o&&(t=o)
13var i=0,a=function F(){}
14return{s:a,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,m=!1
15return{s:function s(){o=o.call(t)},n:function n(){var t=o.next()
16return c=t.done,t},e:function e(t){m=!0,l=t},f:function f(){try{c||null==o.return||o.return()}finally{if(m)throw l}}}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length)
17for(var o=0,i=Array(r);o<r;
17o++)i[o]=t[o]
18return i}r.a=function htmlStringImgUrlConverter(t){var r=document.createElement("div")
19r.innerHTML=t
20var o,a=_createForOfIteratorHelper(r.getElementsByTagName("img"))
21try{for(a.s();!(o=a.n()).done;){var l=o.value
22l.src=Object(i.a)(l.src,{type:"image-wysiwyg",quality:85})}}catch(t){a.e(t)}finally{a.f()}var c,m=_createForOfIteratorHelper(r.getElementsByTagName("a"))
23try{for(m.s();!(c=m.n()).done;){var u=c.value,d=resolveLinkProps(u.href)
24u.href=d.to||d.href}}catch(t){m.e(t)}finally{m.f()}return r.innerHTML}},ePvo:function(t,r,o){"use strict"
25o.r(r),o.d(r,"default",(function(){return H}))
26var i,a=o("q1tI"),l=o.n(a),c=o("17x9"),m=o("w1nR"),u=o("QqLL"),d=o("LboF"),g=o.n(d),h=o("8roP"),p={injectType:"singletonStyleTag",insert:"head",singleton:!0},y=(g()(h.a,p),h.a.locals||{}),v=function CMSPageShimmer(t){var r=Object(u.a)(y,t.classes)
27return l.a.createElement("div",{className:r.root,"aria-live":"polite","aria-busy":"true"},l.a.createElement(m.a,{width:"100%",height:"880px",key:"banner"}))},b=o("J4zp"),_=o.n(b),C=o("+TN3"),L=o("W+3L"),E=o("KkRr"),w=o("VkAN"),S=o.n(w),B=o("UYTu"),O={getCMSPageQuery:Object(B.b)(i||(i=S()(["\n    query GetCmsPage($identifier: String!) {\n        cmsPage(identifier: $identifier) {\n            url_key\n            content\n            content_heading\n            title\n            page_layout\n            meta_title\n            meta_keywords\n            meta_description\n            hreflangs {\n                locale\n                url\n            }\n        }\n    }\n"])))},j=o("lSNA"),k=o.n(j),P=o("/DFd"),A={injectType:"singletonStyleTag",insert:"head",singleton:!0},T=(g()(P.a,A),P.a.locals||{}),x=o("H5MO"),N=function toHTML(t){return{__html:Object(x.a)(t)}}
28var V=function PlainHtmlRenderer(t){var r=t.html,o=t.classes
29return r?l.a.createElement("div",{className:o.root,dangerouslySetInnerHTML:N(r)}):l.a.createElement("div",{className:o.root})}
30function ownKeys(t,r){var o=Object.keys(t)
31if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t)
32r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.push.apply(o,i)}return o}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{}
33r%2?ownKeys(Object(o),!0).forEach((function(r){k()(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(o,r))}))}return t}var W=function RichContent(t){var r=Object(u.a)(T,t.classes),o=_objectSpread(_objectSpread({},t),{},{classes:r})
34return function useObserver(){Object(a.useEffect)((function(){var t=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting?t.target.classList.contains("tl-droite")?t.target.classList.add("tl-droite-animate"):t.target.classList.contains("tl-gauche")&&t.target.classList.add("tl-gauche-animate"):t.target.classList.contains("tl-droite")?t.target.classList.remove("tl-droite-animate"):t.target.classList.contains("tl-gauche")&&t.target.classList.remove("tl-gauche-animate")}))}),{threshold:.1})
35return document.querySelectorAll(".tl-item").forEach((function(r){t.observe(r)})),function(){document.querySelectorAll(".tl-item").forEach((function(r){t.unobserve(r)}))}}),[])}(),o.html,l.a.createElement(V,o)}
36W.propTypes={classes:Object(c.shape)({root:c.string}),html:c.string}
37var z=W,I=o("rLZa")
38var M=function CMSPage(t){var r=function useCmsPage(t){var r=t.identifier,o=Object(u.a)(O,t.operations).getCMSPageQuery,i=Object(E.b)(),l=_()(i,2)[1].dispatch,c=Object(C.a)(o,{variables:{identifier:r},fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"}),m=c.loading,d=c.data,g=Object(L.b)(),h=_()(g,2)[1].actions.setPageLoading
39Object(a.useEffect)((function(){return function(){h(!1)}}),[h]),Object(a.useEffect)((function(){h(m)}),[m,h])
40var p=m&&!d,y=d?d.cmsPage:null
41return Object(a.useEffect)((function(){!m&&y&&l({type:"CMS_PAGE_VIEW",payload:{url_key:y.url_key,title:y.title}})}),[m,y,l]),{cmsPage:y,shouldShowLoadingIndicator:p}}({identifier:t.identifier}),o=r.cmsPage,i=r.shouldShowLoadingIndicator,c=Object(u.a)(y,t.classes)
42if(i)return l.a.createElement(v,{classes:c})
43var m=o.content_heading,d=o.title,g=o.meta_title,h=o.meta_description,p=o.page_layout,b=o.content,w=o.hreflangs,S=function getBaseURL(){var t=window.location.origin+window.location.pathname
44return t.endsWith("/")&&(t=t.slice(0,-1)),t}(),B=Array.isArray(w)?Array.from(new Map(w.filter((function(t){return t&&t.locale&&t.url})).map((function(t){var r=t.locale,o=t.url
45return[r.replace("_","-"),{locale:r.replace("_","-"),url:o}]}))).values()):[],j=""!==m?l.a.createElement("h1",{className:c.heading},m):null,k=g||d,P=p?c["root_".concat(function toCamelCase(t){return t.replace(/[-_ ]([a-zA-Z])/g,(function(t){return t.substr(1).toUpperCase()}))}(p))]:c.root
46return function CMSDynamicStyle(){var t,r,o,i,a=document.getElementsByClassName("card-header"),l=document.getElementsByClassName("Accordeon__btn"),c=document.getElementsByClassName("CGVCategories"),m=document.getElementsByClassName("CGVCategories__link"),u=document.getElementsByClassName("Accordeon"),d=document.getElementsByClassName("CGVContent__retour"),g=document.getElementsByClassName("FAQCategories__link"),h=document.getElementsByClassName("FAQCategories"),p=document.getElementsByClassName("FAQContent__retour")
47window.innerWidth<476&&(null===(t=c[0])||void 0===t||t.classList.remove("isVisible"),null===(r=d[0])||void 0===r||r.classList.add("isVisible"),null===(o=h[0])||void 0===o||o.classList.remove("isVisible"),null===(i=p[0])||void 0===i||i.classList.add("isVisible"))
48for(var y=function _loop(t){m[t].addEventListener("click",(function(){for(var r,o=0;o<c.length;o++){var i
49null===(i=c[o])||void 0===i||i.classList.remove("isVisible")}for(var a=0;a<u.length;a++){var l
50null===(l=u[a])||void 0===l||l.classList.remove("isSelected")}for(var g,h="CGVContent__accordeon--".concat([t+1]),p=document.getElementById(h),y=0;y<m.length;y++){var v
51null===(v=m[y])||void 0===v||v.classList.remove("isSelected"),null==p||p.classList.remove("isSelected")}(null!=p&&p.classList.contains("isSelected")||null==p||p.classList.toggle("isSelected"),null!==(r=m[t])&&void 0!==r&&r.classList.contains("isSelected"))||(null===(g=m[t])||void 0===g||g.classList.toggle("isSelected"))
52for(var b=0;b<d.length;b++){var _
53null===(_=d[b])||void 0===_||_.classList.add("isVisible")}}))},v=0;v<m.length;v++)y(v)
54for(var b=function _loop2(t){a[t].addEventListener("click",(function(){for(var r,o,i=0;i<a.length;i++){var c,m
55null===(c=l[i])||void 0===c||c.classList.remove("isSelected"),null===(m=a[i])||void 0===m||m.classList.remove("isSelected")}null===(r=l[t])||void 0===r||r.classList.toggle("isSelected"),null===(o=this.classList)||void 0===o||o.toggle("isSelected")}))},_=0;_<a.length;_++)b(_)
56for(var C=function _loop3(t){d[t].addEventListener("click",(function(){d[t].classList.remove("isVisible")
57for(var r=0;r<c.length;r++){var o
58null===(o=c[r])||void 0===o||o.classList.add("isVisible")}for(var i=0;i<u.length;i++){var a
59null===(a=u[i])||void 0===a||a.classList.remove("isSelected")}for(var l=0;l<m.length;l++){var g
60null===(g=m[l])||void 0===g||g.classList.remove("isSelected")}}))},L=0;L<d.length;L++)C(L)
61for(var E=function _loop4(t){g[t].addEventListener("click",(function(){for(var r=0;r<h.length;r++)h[r].classList.remove("isVisible")
62for(var o=0;o<u.length;o++)u[o].classList.remove("isSelected")
63for(var i="FAQContent__accordeon--".concat([t+1]),a=document.getElementById(i),l=0;l<g.length;l++)g[l].classList.remove("isSelected"),a.classList.remove("isSelected")
64a.classList.contains("isSelected")||a.classList.toggle("isSelected"),g[t].classList.contains("isSelected")||g[t].classList.toggle("isSelected")
65for(var c=0;c<p.length;c++)p[c].classList.add("isVisible")}))},w=0;w<g.length;w++)E(w)
66for(var S=function _loop5(t){p[t].addEventListener("click",(function(){p[t].classList.remove("isVisible")
67for(var r=0;r<h.length;r++){var o
68null===(o=h[r])||void 0===o||o.classList.add("isVisible")}for(var i=0;i<u.length;i++){var a
69null===(a=u[i])||void 0===a||a.classList.remove("isSelected")}for(var l=0;l<g.length;l++){var c
70null===(c=g[l])||void 0===c||c.classList.remove("isSelected")}}))},B=0;B<p.length;B++)S(B)}(),l.a.createElement(a.Fragment,null,l.a.createElement(I.g,null,k),l.a.createElement(I.e,{name:"title",content:k}),l.a.createElement(I.e,{name:"description",content:h}),l.a.createElement("link",{rel:"stylesheet",type:"text/css",href:"/my-static-assets/css/cmsCommon.css"}),l.a.createElement("link",{rel:"stylesheet",type:"text/css",href:"/my-static-assets/css/cmsCGV.css"}),l.a.createElement("link",{rel:"stylesheet",type:"text/css",href:"/my-static-assets/css/cmsEquipeHistoire.css"}),l.a.createElement("link",{rel:"stylesheet",type:"text/css",href:"/my-static-assets/css/cmsGDPR.css"}),S?l.a.createElement(l.a.Fragment,null,l.a.createElement(I.d,{rel:"canonical",href:S,key:"canonical-".concat(S)}),l.a.createElement(I.e,{property:"og:url",content:S}),B.map((function(t){var r=t.locale,o=t.url
71return l.a.createElement(I.d,{rel:"alternate",href:o,hrefLang:r,key:"alternate-".concat(r)})}
71))):null,l.a.createElement("article",{className:P},j,l.a.createElement(z,{html:b})))}
72M.propTypes={identifier:c.string,classes:Object(c.shape)({root:c.string,heading:c.string,root_empty:c.string,root_1column:c.string,root_2columnsLeft:c.string,root_2columnsRight:c.string,root_3columns:c.string,root_cmsFullWidth:c.string,root_categoryFullWidth:c.string,root_productFullWidth:c.string})}
73var H=M}}])

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.