PageSourceSearch

https://www.victoriassecret.com/assets/m6558-avAhhUxTTXulCorAUtEdC…/vscc-frequently-asked-questions.js

js victoriassecret.com collected 2026-09-24 08:32:06 UTC 5,204 bytes, 2 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ad500bf9-300c-4b5d-8a2e-b6d722f6e088",e._sentryDebugIdIdentifier="sentry-dbid-ad500bf9-300c-4b5d-8a2e-b6d722f6e088")}()}catch(e){}!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var s=arguments[n];if(null!=s)for(var r in s)s.hasOwnProperty(r)&&(e[r]=s[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:fewd-flagship":!0})}(),("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"flagship-m6558"},(self.webpackChunk_vsdp_flagship=self.webpackChunk_vsdp_flagship||[]).push([[3064],{79744:(e,n,s)=>{s.r(n),s.d(n,{default:()=>_});var r=s(8626),t=s(78090),a=s.n(t),o=s(55355),l=s(57525),i=s(5310),c=s(64862),d=s(17849),u=s(16453),f=s(19068),h=s(25270),p=s(92907),g=s(38182),x=s(92468);var b=s(16765);const y="vscc-faq-json-ld";var v=s(58421),w=s(24650),A=s(8938),m=s(99262),j=s(74848);const q={isExternalUrl:!0},C={rel:"noopener noreferrer",target:"_blank"},k=({stateSetter:e,useContext:n})=>{const s=n();return(0,t.useEffect)((()=>{e(s)}),[s,e]),null},E=a().forwardRef((({children:e},n)=>(0,j.jsx)(l.A,{backgroundColor:"neutral0",className:"vscc-faq-question",ref:n,children:(0,j.jsx)(u.A,{html:e})}))),T=a().forwardRef((({answer:e,question:n,row:s},a)=>{const[l,c]=(0,t.useState)(!1),[d,h]=(0,t.useState)(""),b=(0,m.Ay)("dp76498EventDrivenDatalayerSetupEnhancement"),{device:y}=(0,A.A)(),w=(0,t.useCallback)(((e,n)=>{n&&(h(e?.target?.href),c(!0),e.preventDefault())}),[]),k=(0,t.useMemo)((()=>e?.map(((e,n)=>{if(r.Kg(e))return(0,j.jsx)(u.A,{html:e},n);if(e.isAriaHiddenText){const{isNoWrap:s,text:r}=e,t=s?v.vh:"span";return(0,j.jsx)(t,{"aria-hidden":!0,children:r},`${r}-${n+1}`)}if(e.isLink){const{hiddenPostText:s,hiddenPreText:r,isNoWrap:t,isOpenInNewTab:a,isThirdPartyLink:o,path:l,text:i}=e,c=t?v.vh:f.A;return(0,j.jsxs)(c,{as:t?f.A:null,hoverColor:"secondary.hover",href:l,isUnderlined:!0,onClick:e=>w(e,o&&q.isExternalUrl),...o&&q,...a&&C,children:[r?(0,j.jsx)(p.A,{children:r}):null,i,s?(0,j.jsx)(p.A,{children:s}):null]},`${i}-${n+1}`)}if(e.isList){const{items:s}=e;return(0,j.jsx)("ul",{children:s?.map((e=>(0,j.jsx)(u.A,{as:"li",html:e},e)))},n)}return null}))??""),[e,w]),T=(0,t.useCallback)((({isOpen:e})=>{(({question:e,isOpen:n},s)=>{(0,x.W)({question:e,ctaPosition:"vscc faqs",isOpen:n},s)})({question:n,isOpen:e},b)}),[n,b]);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(o.A,{borderColor:"neutral60",className:"vscc-faq",onChange:T,children:[(0,j.jsx)(E,{backgroundColor:"neutral0",className:"vscc-faq-question",ref:a,children:n}),(0,j.jsx)(i.A,{backgroundColor:"neutral0",className:"vscc-faq-answer",children:k})]}),l&&(0,j.jsx)(g.A,{isMobile:"mobile"===y,linkUrl:d,isOpen:l,onDismiss:()=>{c(!1),h("")},ctaPosition:"vsccfaqs",ctaName:d})]})})),_=({data:e,vsccFAQData:n})=>{const s=(0,t.useRef)(),a=(0,t.useRef)(),[o,l]=(0,t.useState)(!0),{customFields:u}=e,{faqs:f,accessHiddenFAQsCTA:p,visibleFAQsCount:g}=(0,t.useMemo)((()=>n||(0,w.A)(u,"vsccFAQ")),[u,n]),[x,A]=(0,t.useState)({register:()=>{},unregister:()=>{}});(0,t.useEffect)((()=>{(e=>{if(!e)return;if(document.querySelector(`#${y}`))return;const n=Array.from(e.querySelectorAll(".vscc-faq-question > button")),s=Array.from(e.querySelectorAll(".vscc-faq-answer > div"));if(!n.length||!s.length)return;const r={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[]};n.forEach(((e,n)=>{s[n].innerHTML&&r.mainEntity.push({"@type":"Question",name:e.textContent,acceptedA
1nswer:{"@type":"Answer",text:s[n].innerHTML}})})),(0,b.g)({id:y,jsonLD:r})})(s.current)}),[]);const m=g>0&&g<f?.length&&r.O9(p),q=m?f?.slice(0,g):f,C=m?f?.slice(g+1):null,E=q?.length;return(0,j.jsxs)(v.Hu,{as:"section",ref:s,id:"vscc-faqs",children:[(0,j.jsxs)(c.A,{isGrouped:!0,children:[m?(0,j.jsx)(k,{stateSetter:A,useContext:d.a}):null,(0,j.jsx)(h.A,{color:"neutral60"}),q?.map((({answer:e,question:n},s)=>(0,j.jsx)(T,{ref:s===q.length-1?a:null,answer:e,question:n,row:s},`${n}-${s+1}`)))]}),m&&(0,j.jsx)(c.A,{children:(0,j.jsxs)(v.S,{borderColor:"transparent",onChange:({isInitialization:e})=>{e||a.current?.querySelector("button")?.focus()},children:[(0,j.jsxs)(i.A,{backgroundColor:"neutral0",className:"vscc-faq-hidden-accordion-panel",children:[(0,j.jsx)(h.A,{color:"neutral60"}),(0,j.jsx)(d.v.Provider,{value:x,children:C.map((({answer:e,question:n},s)=>(0,j.jsx)(T,{answer:e,question:n,row:E+s},`${n}-${s+2}`)))})]}),(0,j.jsx)(v.XV,{className:"vscc-faq-hidden-accordion-header",closedIcon:(0,j.jsx)(j.Fragment,{}),openedIcon:(0,j.jsx)(j.Fragment,{}),onClick:()=>l(!1),$showButton:o,children:p.showText})]})})]})}}}]);
2//# sourceMappingURL=vscc-frequently-asked-questions.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.