PageSourceSearch

https://www.christies.com.cn/dist/dw-jss-discovery-website/static/js/FooterZone.edc31602.chunk.js

js christies.com.cn collected 2026-10-02 10:09:17 UTC 6,955 bytes, 2 lines download raw bytes

1(this["webpackJsonpdiscovery-website-jss"]=this["webpackJsonpdiscovery-website-jss"]||[]).push([[12],{626:function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),i=n(675),a=n(676);t.default=Object(a.a)((function(e){var t=e.parsedFields,n=e.parsedSitecoreContext,a=t.footerModel,c=n["Discovery.Feature.FeIntegration.IntegrationData"],u=t.footerAssetsUrl;return i.a&&(window.chrGlobal=c||{}),Object(o.useEffect)((function(){var e=document.getElementById("footerHost");if(e){var n=e.attachShadow({mode:"open"}),o=document.createElement("link");o.rel="stylesheet",o.href=t.footerCssUrl,n.appendChild(o);var r=document.createElement("style");r.textContent="\n      :root, :host(#headerHost), :host(#footerHost) {\n        --z-index-base: 100;\n      }\n    ",n.appendChild(r);var i=document.createElement("div");i.id="footerRoot",n.appendChild(i);var c=document.createElement("script");return c.type="module",c.textContent='\n      import ReactTools, { Footer } from "'.concat(u,'";\n\n      // Access shadow DOM elements\n      const hostEl = document.getElementById("footerHost");\n      const shadowRoot = hostEl.shadowRoot;\n      const footerRootEl = shadowRoot.getElementById("footerRoot");\n\n      if (footerRootEl) {\n        const footerRoot = ReactTools.createRoot(footerRootEl);\n        footerRoot.render(\n          ReactTools.createElement(Footer, {\n            footerData: ').concat(JSON.stringify(a),",\n          })\n        );\n      }\n    "),document.body.appendChild(c),function(){document.body.contains(c)&&document.body.removeChild(c)}}}),[]),r.a.createElement("div",null,r.a.createElement("div",{id:"footerHost"}),r.a.createElement("button",{id:"cookie-settings-shadow-dom",className:"ot-sdk-show-settings",style:{display:"none"}}))}))},672:function(e,t,n){"use strict";n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return v})),n.d(t,"g",(function(){return f})),n.d(t,"c",(function(){return m}));var o=n(25),r=n(673),i=n(665),a=["videoUrl"],c=function(e,t){if(e){var n="string"!==typeof e?null===e||void 0===e?void 0:e.src:e;return t&&n.includes("default_image.svg")||n.includes("jssmedia")?n:n.replace("media","jssmedia")}},u=function(e,t){var n=e.src,o=e.alt,r=e.width,i=e.height,a=c(n,t);if(a)return{src:a,alt:o,width:r,height:i}},d=function(e){var t=e.videoType,n=e.brightcove,i=e.youtube,c=e.embedded,u=function(e){var t=e.videoUrl,n=Object(r.a)(e,a);return Object(o.a)({videoUrl:t&&(null===t||void 0===t?void 0:t.startsWith("https"))?t:"https:".concat(t)},n)},d={brightcove:u(n),youtube:u(i),embedded:u(c)},l=t?d[t]:{},s=l.videoUrl,v=l.videoId,f={"{accountId}":l.accountId,"{videoId}":v,"{YouTubeId}":v};return null===s||void 0===s?void 0:s.replace(/{accountId}|{videoId}|{YouTubeId}/gi,(function(e){return f[e]}))},l=function(e,t,n){var o,r;return"undefined"===typeof n?void 0!=(null===(r=e)||void 0===r?void 0:r[t]):(null===(o=e)||void 0===o?void 0:o[t])===n},s=function(e,t){return!!e&&t.some((function(t){return Object.keys(e).includes(t)}))},v=Object(i.b)()((function(e){var t=e.children,n=e.parsedFields,o=e.sitecoreContext.pageEditing;return function(e){return!!e&&0!==Object.keys(e).filter((function(e){return"instanceCount"!==e})).length}(n)||o?t:null})),f=function(e){return e.replace(/[^\w-]+/g,"-").replace(/--+/g,"-").replace(/^-/,"").replace(/-$/,"")},m=function(e){if(e){var t,n=e.src,o=e.alt,r=e.width,i=e.height;return r&&i&&(t=Number(r)/Number(i)),{src:n,alt:o,aspectRatio:t}}}},675:function(e,t,n){"use strict";var o=n(224);n.d(t,"a",(function(){return o.a})),n.d(t,"b",(function(){return!1}))},676:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(7),r=n(8),i=n(35),a=n(39),c=n(6),u=n(25),d=n(0),l=n(665),s=n(118),v=n(672),f=n(675),m=n(864),b=n(27),p=n(618),h=function(e){return"string"===typeof e||"boolean"===typeof e||"number"===typeof e},j=function e(t,n){if(t){if(h(t))return t;if(Array.isArray(t))return t.map((function(t){return Object(v.e)(t,"fields")?e(Object(u.a)(Object(u.a)({},t.fields),{},{Id:null===t||void 0===t?void 0:t.id}),n):e(t,n)}
1));if(Object(v.e)(t,"fields")){var o,r,i,a,c={key:null===t||void 0===t||null===(o=t.fields)||void 0===o||null===(r=o.Key)||void 0===r?void 0:r.value,value:null===t||void 0===t||null===(i=t.fields)||void 0===i||null===(a=i.Value)||void 0===a?void 0:a.value};if(c)return c}if(Object(v.e)(t,"Key")){var d,l,s={key:null===t||void 0===t||null===(d=t.Key)||void 0===d?void 0:d.value,value:null===t||void 0===t||null===(l=t.Value)||void 0===l?void 0:l.value,id:null===t||void 0===t?void 0:t.Id};if(s)return s}if(Object(v.e)(t,"title")){var f={title:null===t||void 0===t?void 0:t.title,id:null===t||void 0===t?void 0:t.id};if(f)return f}if(Object(v.e)(t,"method")&&t)return t;if(Object(v.e)(t,"value")){var m=null===t||void 0===t?void 0:t.value;if(h(m))return m;var p=Object.values(m);if(p.length&&p.some((function(e){return e})))return Object(v.e)(m,"src")?Object(v.b)(m,n):m}return Object(v.e)(t,"ismobileapp")||Object(v.e)(t,"interactionDestinationByUrlPath")||Object(v.e)(t,"departments")||Object(v.e)(t,b.a.xs)||Object(v.e)(t,"data")?t:void 0}},O=function(e,t){if(e){var n=Object.entries(e).map((function(e){var n=Object(c.a)(e,2),o=n[0],r=n[1];return[o,j(r,t)]}));return Object.fromEntries(n.filter((function(e){var t=Object(c.a)(e,2)[1];return void 0!==t&&null!==t})))}},g=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).state={hasError:!1,error:void 0},r}return Object(r.a)(n,[{key:"componentDidCatch",value:function(e){f.b&&(console.error(e),this.setState(Object(u.a)(Object(u.a)({},this.state),{},{error:e})))}},{key:"render",value:function(){var e,t;return this.state.hasError?f.b?d.createElement(m.a,null,d.createElement(p.a,{as:"h2"},this.props.componentName),d.createElement(p.a,{as:"p"},null===(e=this.state.error)||void 0===e?void 0:e.name),d.createElement(p.a,{as:"p"},null===(t=this.state.error)||void 0===t?void 0:t.message)):null:this.props.children}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),n}(d.Component),y=function(e){var t=e.children,n=e.pageEditing,o=e.componentName;return n?t:d.createElement(g,{componentName:o},t)};function E(e){return Object(l.b)()(Object(s.c)()((function(t){var n=t.fields,o=t.sitecoreContext,r=t.params,i=t.rendering,a=t.t,u=null===o||void 0===o?void 0:o.pageEditing,l=O(n,u),s=Object.fromEntries(Object.entries(o).filter((function(e){var t=Object(c.a)(e,1)[0];return"route"!==t&&"site"!==t}))),v=O(o.route.fields,u),f=O(r,u),m=O(s,u);return u||!1!==(null===l||void 0===l?void 0:l["Show Component"])?d.createElement(y,{componentName:i.componentName,pageEditing:u},d.createElement(e,{parsedFields:l,parsedRouteFields:v,pageEditing:u,parsedParams:f,parsedSitecoreContext:m,t
1:a})):null})))}}}]);
2//# sourceMappingURL=FooterZone.edc31602.chunk.js.map

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.