PageSourceSearch

https://www.lenstore.co.uk/_nuxt/a48f503.js

js lenstore.co.uk collected 2026-10-02 07:44:24 UTC 6,586 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[188],{1135:function(t,e,n){"use strict";n.r(e);var o=n(2153),r=n(1859);for(var d in r)["default"].indexOf(d)<0&&function(t){n.d(e,t,function(){return r[t]})}(d);n(2155);var c=n(2),component=Object(c.a)(r.default,o.render,o.staticRenderFns,!1,null,null,null);e.default=component.exports},1859:function(t,e,n){"use strict";n.r(e);var o=n(1860),r=n.n(o);for(var d in o)["default"].indexOf(d)<0&&function(t){n.d(e,t,function(){return o[t]})}(d);e.default=r.a},1860:function(t,e,n){"use strict";var o=n(3);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(70),n(15),n(71),n(7),n(17),n(14),n(84),n(6);var r=o(n(8)),d=o(n(10)),c=n(83),l=n(117),v=n(2154),f=n(165),h=n(115);function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach(function(e){(0,r.default)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}e.default={asyncData:t=>(0,d.default)(function*(){var e=t.route,n=t.app,o=t.$axios,r=t.error,d=(t.store,n.$getResourceId(e.name));try{var c=(0,v.useContentStore)(),l=(0,f.useRootStore)();return yield c.getContent(d,{rootStore:l,$axios:o,error:r}),n.$tealium.track((0,h.buildPageViewEvent)(n,e,{Page_Type:"Static",Page_Section1:"Other",Page_Section2:(0,h.slugToCamelCase)((0,h.getDefaultSlug)(c.meta))})),{}}catch(t){return console.error("AsyncData error:",t),{}}})(),data:()=>({}),fetch(){var t=this;return(0,d.default)(function*(){var e=t.$getResourceId(t.$route.name);t.contentStore.id!==parseInt(e)&&(yield t.contentStore.getContent(e,{rootStore:t.rootStore,$axios:t.$axios,error:t.$nuxt.error}))})()},head(){var t,e,n,o,r,d,c,v=(null===(t=this.contentStore)||void 0===t||null===(e=t.meta)||void 0===e||null===(n=e.lang)||void 0===n?void 0:n.map(t=>({rel:"alternate",hreflang:t.code,href:t.url})))||[];return{title:(0,l.decodeHTML)((null===(o=this.contentStore.meta)||void 0===o?void 0:o.title)||(null===(r=this.meta)||void 0===r?void 0:r.title)),meta:[{hid:"description",name:"description",content:(0,l.decodeHTML)((null===(d=this.contentStore.meta)||void 0===d?void 0:d.description)||(null===(c=this.meta)||void 0===c?void 0:c.description))}],link:[...v]}},computed:y(y({},(0,c.mapState)(["meta"])),{},{contentStore:()=>(0,v.useContentStore)(),rootStore:()=>(0,f.useRootStore)()}),mounted(){var t,e,n,o,r,d;null===(t=this.$refs)||void 0===t||null===(e=t.documentContent)||void 0===e||e.querySelectorAll("a").forEach(link=>{link.addEventListener("click",t=>{var e,n=null==t?void 0:t.target,o=n.href,r=n.hash,d="/communication-preferences",c=null==o||null===(e=o.split("index.php?_a=viewDoc&docId="))||void 0===e?void 0:e[1];if(c)t.preventDefault(),this.$router.push(this.$getLink("document/".concat(c)));else if(o.includes("?_a=newsletter"))t.preventDefault(),this.$auth.loggedIn?this.$router.push(this.$getLink(d)):(this.$store.commit("SET_LOGIN_REDIRECT_TO",d),this.$router.push(this.$getLink("/login")));else if(r){var l,v,f,h,m=r.replace("#","").replace("%20"," "),y=(null===(l=document.getElementById(m))||void 0===l||null===(v=l.getBoundingClientRect())||void 0===v?void 0:v.y)||0,S=(null===(f=this.$refs.documentContent)||void 0===f||null===(h=f.getBoundingClientRect())||void 0===h?void 0:h.y)||0;t.preventDefault(),window.scrollTo({top:y-S})}})}),null===(n=this.$refs)||void 0===n||null===(o=n.documentContent)||void 0===o||o.querySelectorAll("[data-zendesk-chat-trigger]").forEach(link=>{link.addEventListener("click",t=>{t.preventDefault(),this.$openLiveChat()})}),null===(r=this.$refs)||void 0===r||null===(d=r.documentContent)||void 0===d||d.querySelectorAll("script").forEach(t=>{var e,n=document.createElement("script");Array.from(t.attributes).forEach(t=>n.setAttribute(t.name,t.value)),"true"===(null===(e=t.dataset)||void 0===e?void 0:e.jsScriptOnReload)&&n.setAttribute("type","text/javascript"),n.appendChild(document.createTextNode(t.innerHTML)),t.parentNode.replaceChild(n,t)})}}},2014:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.staticRenderFns=e.render=void 0;e.render=function(){var t=this,e=t._self._c;return e("section",{attrs:{"data-cy":"content-page"}},[e("div",{staticClass:"w-full py-5 desktop:px-25 desktop-md:px-m-container desktop-xl:max-w-main-container desktop-xl:mx-auto"},[e("div",[t.contentStore.showTitle?e("h1",{staticClass:"font-bold text-2xl text-center desktop-md:text-3xl pt-2 pb-4",attrs:{"data-cy":"content-name"},domProps:{innerHTML:t._s(t.contentStore.title)}}):t._e(),t._v(" "),t.contentStore.content?e("div",{ref:"documentContent",staticClass:"document-content px-4 desktop-md:px-0",attrs:{"data-cy":"content-content"},domProps:{innerHTML:t._s(t.contentStore.content)}}):t._e()])])])},e.staticRenderFns=[]},2015:function(t,e,n){t.exports={}},2153:function(t,e,n){"use strict";var o=n(2014);n.o(o,"render")&&n.d(e,"render",function(){return o.render}),n.o(o,"staticRenderFns")&&n.d(e,"staticRenderFns",function(){return o.staticRenderFns})},2154:function(t,e,n){"use strict";var o=n(3);Object.defineProperty(e,"__esModule",{value:!0}),e.useContentStore=void 0;var r=o(n(10)),d=n(91),c=n(19);e.useContentStore=(0,d.defineStore)("content",{state:()=>({title:"",id:null,content:"",showTitle:!0,meta:""}),actions:{setContent(content){var t;this.title=content.name,this.id=content.id,this.meta=content.meta,this.content=content.content,this.showTitle=!(null!==(t=content.features)&&void 0!==t&&t.hideH1)},getContent(t){var e=arguments,n=this;return(0,r.default)(function*(){var o=e.length>1&&void 0!==e[1]?e[1]:{},r=o.rootStore,d=void 0===r?null:r,l=o.$axios,v=void 0===l?null:l,f=o.error,h=void 0===f?null:f;d&&(d.removeError("content"),d.addLoading("content"));var m=v||(window.$nuxt?window.$nuxt.$axios:null);if(m)try{var content=(yield m.get("/content/".concat(t),{params:c.defaultParams})).data.data;n.setContent(content)}catch(t){var y;404===(null===(y=t.response)||void 0===y?void 0:y.status)&&h&&h({statusCode:404,message:"Content not found"}),d&&d.addError({id:"content",error:t})}finally{d&&d.removeLoading("content")}else d&&(d.addError({id:"content",error:new Error("No axios instance")}),d.removeLoading("content"))})()}}})},2155:function(t,e,n){"use strict";n(2015)}}]);

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.