PageSourceSearch

https://www.fcsamerica.com/etc.clientlibs/digital-customer-experie…-febc444db044a4af44494de60bb4dcc1-lc.min.js

js fcsamerica.com collected 2026-10-02 05:02:41 UTC 5,472 bytes, 1 lines download raw bytes

1!function(){"use strict";class e{constructor(e){this.element=e,this.button=e.querySelector(".cmp-share-menu__button"),this.details=e.querySelector("details"),this.options=e.querySelectorAll(".cmp-share-menu__option"),this.feedback=e.querySelector(".cmp-share-menu__feedback"),this.shareUrl=this.element.dataset.shareUrl||window.location.href,this.shareTitle=this.element.dataset.shareTitle||document.title,this.enableAnalytics="false"!==this.element.dataset.enableAnalytics,this.init()}init(){this.button&&this.details&&(this.handleOptionClick=this.handleOptionClick.bind(this),this.handleDetailsToggle=this.handleDetailsToggle.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this),this.handleEscapeKey=this.handleEscapeKey.bind(this),this.options.forEach((e=>{e.addEventListener("click",this.handleOptionClick)})),this.details.addEventListener("toggle",this.handleDetailsToggle))}handleDetailsToggle(e){this.details.open?(this.trackEvent("share_panel_opened"),setTimeout((()=>{document.addEventListener("click",this.handleOutsideClick),document.addEventListener("keydown",this.handleEscapeKey)}),100)):(this.trackEvent("share_panel_closed"),this.clearFeedback(),document.removeEventListener("click",this.handleOutsideClick),document.removeEventListener("keydown",this.handleEscapeKey))}handleOutsideClick(e){this.element.contains(e.target)||(this.details.open=!1)}handleEscapeKey(e){if("Escape"===e.key&&this.details.open){this.details.open=!1;const e=this.details.querySelector("summary");e&&e.focus()}}handleOptionClick(e){e.preventDefault(),e.stopPropagation();const t=e.currentTarget.dataset.shareMethod;switch(t){case"linkedin":this.shareLinkedIn();break;case"facebook":this.shareFacebook();break;case"x":this.shareX();break;case"email":this.shareEmail();break;case"copy":this.copyLink()}this.trackEvent("share_method_clicked",{method:t})}shareLinkedIn(){const e=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(this.shareUrl)}`;this.openShareWindow(e,"LinkedIn"),this.trackEvent("shared_linkedin")}shareFacebook(){const e=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.shareUrl)}`;this.openShareWindow(e,"Facebook"),this.trackEvent("shared_facebook")}shareX(){const e=`https://twitter.com/intent/tweet?url=${encodeURIComponent(this.shareUrl)}&text=${encodeURIComponent(this.shareTitle)}`;this.openShareWindow(e,"X"),this.trackEvent("shared_x")}shareEmail(){const e=`mailto:?subject=${encodeURIComponent(this.shareTitle)}&body=${encodeURIComponent(`Check out this page: ${this.shareUrl}`)}`;window.location.href=e,this.trackEvent("shared_email"),this.showFeedback("Email client opened"),setTimeout((()=>{this.details.open=!1}),2e3)}async copyLink(){try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(this.shareUrl),this.showFeedback("Link copied to clipboard!"),this.trackEvent("link_copied");else{const e=document.createElement("textarea");e.value=this.shareUrl,e.style.position="fixed",e.style.left="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy"),this.showFeedback("Link copied to clipboard!"),this.trackEvent("link_copied")}catch(e){this.showFeedback("Failed to copy link"),this.trackEvent("link_copy_failed")}document.body.removeChild(e)}setTimeout((()=>{this.details.open=!1}),2e3)}catch(e){console.error("Failed to copy link:",e),this.showFeedback("Failed to copy link"),this.trackEvent("link_copy_failed")}}openShareWindow(e,t){const i=(window.screen.width-600)/2,s=(window.screen.height-500)/2;window.open(e,`share-${t}`,`width=600,height=500,left=${i},top=${s},toolbar=no,menubar=no,scrollbars=yes,resizable=yes`)}showFeedback(e){this.feedback&&(this.feedback.textContent=e,this.feedback.style.display="block",this.feedback.style.padding="8px",this.feedback.style.marginTop="8px",this.feedback.style.backgroundColor="#d4edda",this.feedback.style.border="1px solid #c3e6cb",this.feedback.style.borderRadius="4px",this.feedback.style.color="#155724",this.feedback.style.fontSize="14px",this.feedback.style.textAlign="center",clearTimeout(this.feedbackTimeout),this.feedbackTimeout=setTimeout((()=>{this.clearFeedback()}),3e3))}clearFeedback(){this.feedback&&(this.feedback.textContent="",this.feedback.style.display="none")}trackEvent(e,t={}){if(!this.enableAnalytics)return;"undefined"!=typeof _satellite&&_satellite.track&&_satellite.track("share-menu",{event:e,shareUrl:this.shareUrl,shareTitle:this.shareTitle,...t}),"undefined"!=typeof gtag&&gtag("event",e,{event_category:"Social Sharing",event_label:this.shareUrl,...t});const i=new CustomEvent("sharemenu:track",{detail:{eventName:e,shareUrl:this.shareUrl,shareTitle:this.shareTitle,...t}});document.dispatchEvent(i)}destroy(){this.options.forEach((e=>{e.removeEventListener("click",this.handleOptionClick)})),this.details.removeEventListener("toggle",this.handleDetailsToggle),document.removeEventListener("click",this.handleOutsideClick),document.removeEventListener("keydown",this.handleEscapeKey),clearTimeout(this.feedbackTimeout)}}function t(){const t=document.querySelectorAll('[data-cmp-is="share-menu"]'),i=[];return t.forEach((t=>{if(!t.dataset.shareMenuInitialized){const s=new e(t);i.push(s),t.dataset.shareMenuInitialized="true",t.shareMenuInstance=s}})),i}"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t),document.addEventListener("cq-editables-updated",t),window.ShareMenu=e,window.initShareMenus=t}();

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.