PageSourceSearch

https://www.infineon.cn/etc.clientlibs/ifx/clientlibs/clientlib-si…/chunks/9724.5cccc206d4cebc0baf39.js

js infineon.cn collected 2026-10-02 19:18:40 UTC 32,783 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[9724],{3013:function(e,t,n){n.r(t);var r=n(6540),a=n(2840),o=n(9571),i=n(3357),c=n(1511);t.default=function(e){var t=e.imageurl,n=e.opnname,l=e.producturl,u=e.producttitle,s=e.productname,d=e.toplevelcategory,f=e.reference,m=e.divshortdescr,p=e.businesssegment,h=e.productstatusinfo,v=e.ispnid,g=e.familyid,y=e.label,b=e.ispnname,w=e.toastlabel,E=e.componentname,x=e.modalId,_=e.isSample,S=(0,c.U)().translations,k={position:"top-right",autoClose:3e3,closeOnClick:!0,draggable:!0,hideProgressBar:!0,className:"addToCartToast"},N=function(e){var t=new CustomEvent("hideIFXModal",{detail:{message:S.modal_message,target:"#".concat(e)}});window.dispatchEvent(t)},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"AddTocart",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"true",c='"'.concat(n,'" ').concat(w);o.toast.info(r.createElement(i.A,{toggler:e,getitem:"",itemName:"",notification:t,deleted:a,toastMessage:c}),k)},L=function(){var e,t=Number("IFX Product Type Head SSR"===E?window.productQuantity[f]:f),r=null===(e=document.querySelector(".opn_"+n))||void 0===e?void 0:e.innerHTML.slice(1);window.dataLayer=window.dataLayer||[],dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_to_cart",ecommerce:{currency:"USD",value:Number((r*t).toFixed(3)),eventLabel:"Add to Cart",eventSource:E,eventSourceLabel:b,items:[{item_id:null==v?void 0:v.toString(),item_name:b,item_category:d,item_category2:m,item_category3:null==g?void 0:g.toString(),item_category4:p,item_category5:h,item_variant:n,item_isSample:_?"Y":"N",price:Number(r),quantity:Number(t)}]}}),function(e){if(("undefined"!=typeof ifxSearch||"undefined"!=typeof corssReference)&&(ifxSearch||corssReference)){var t=JSON.parse(localStorage.getItem("coveoAnalyticsData"));null!=t&&sendAnalyticsCustom(localStorage.getItem("searchUUID"),e,t.totalResults,t.permanentid,t.docPosition,t.source,t.title,t.infiProducturl,t.urihash)}}("add-to-cart-popup")};return r.createElement(r.Fragment,null,r.createElement("button",{className:"add-to-cart-btn","aria-label":"Addtocart BUtton",onClick:function(){!function(){var e,r=localStorage.getItem("cart-data"),o=null===(e=document.querySelector(".opn_"+n))||void 0===e?void 0:e.innerHTML.slice(1),i=[{imageUrl:t||"",opnName:n,productUrl:(0,a.IT)(l),productTitle:u,productName:s,topLevelCategory:d,quantity:"IFX Product Type Head SSR"===E?window.productQuantity[f]:f,unitPrice:o||"",productSiteUrl:window.location.pathname,divShortDescr:m,businessSegment:p,productStatusInfo:h,ispnId:v,familyId:g}];if(""===r||null===r)localStorage.setItem("cart-data",JSON.stringify(i)),P(),x&&N(x),L();else if((r=JSON.parse(r)).length>0){for(var c=[],y=0;y<r.length;y++)c.push(r[y].opnName);if(c.includes(i[0].opnName))for(var b=0;b<r.length;b++)r[b].opnName===i[0].opnName&&(r[b].quantity!=i[0].quantity&&L(),r[b].quantity=i[0].quantity,r[b].unitPrice=i[0].unitPrice,r[b].imageUrl=i[0].imageUrl,r[b].productUrl=i[0].productUrl,r[b].productTitle=i[0].productTitle,r[b].topLevelCategory=i[0].topLevelCategory,r[b].productName=i[0].productName,r[b].divShortDescr=i[0].divShortDescr,r[b].businessSegment=i[0].businessSegment,r[b].productStatusInfo=i[0].productStatusInfo,r[b].ispnId=i[0].ispnId,r[b].familyId=i[0].familyId);else r.push(i[0]),L();localStorage.setItem("cart-data",JSON.stringify(r)),P(),x&&N(x)}var w=JSON.parse(localStorage.getItem("cart-data"));if(null===w)$(".indicator").css({display:"none"});else{var _=w.length;document.querySelectorAll(".cart-button").forEach((function(e,t){e.childNodes[0].style.display="block",e.childNodes[0].innerHTML=_}))}}()}},r.createElement("span",{className:"icon icon-cart add-tocart-ico"}),r.createElement("span",{className:"add-tocart-label"},y)))}},9470:function(e,t,n){n.r(t);var r=n(6540),a=n(5556),o=n.n(a),i=n(8154),c=n(6942),l=n.n(c),u=n(3472),s=n(8719),d=n(5937),f=n(2494),m=(n(9428),n(4470),n(8873)),p=n(128),h=n(8750);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new D(r||[]);return a(i,"_invoke",{value:L(e,n,c)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var f="suspendedStart",m="suspendedYield",p="executing",h="completed",y={};function b(){}function w(){}function E(){}var x={};u(x,i,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(T([])));S&&S!==n&&r.call(S,i)&&(x=S);var k=E.prototype=b.prototype=Object.create(x);function N(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,002 bytes, line 1
1))}function P(e,t){function n(a,o,i,c){var l=d(e[a],e,o);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==v(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,i,c)}),(function(e){n("throw",e,i,c)})):t.resolve(s).then((function(e){u.value=e,i(u)}),(function(e){return n("throw",e,i,c)}))}c(l.arg)}var o;a(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,a){n(e,r,t,a)}))}return o=o?o.then(a,a):a()}})}function L(t,n,r){var a=f;return function(o,i){if(a===p)throw Error("Generator is already running");if(a===h){if("throw"===o)throw i;return{value:e,done:!0}}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var l=I(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(a===f)throw a=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);a=p;var u=d(t,n,r);if("normal"===u.type){if(a=r.done?h:m,u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(a=h,r.method="throw",r.arg=u.arg)}}}function I(t,n){var r=n.method,a=t.iterator[r];if(a===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(a,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,o=function n(){for(;++a<t.length;)if(r.call(t,a))return n.value=t[a],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(v(t)+" is not iterable")}return w.prototype=E,a(k,"constructor",{value:E,configurable:!0}),a(E,"constructor",{value:w,configurable:!0}),w.displayName=u(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,u(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},N(P.prototype),u(P.prototype,c,(function(){return this})),t.AsyncIterator=P,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new P(s(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(k),u(k,l,"Generator"),u(k,i,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=T,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function a(r,a){return c.type="throw",c.arg=t,n.next=r,a&&(n.method="next",n.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
1if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function y(e,t,n,r,a,o,i){try{var c=e[o](i),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,a)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){y(o,r,a,i,c,"next",e)}function c(e){y(o,r,a,i,c,"throw",e)}i(void 0)}))}}function w(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,c=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw a}}return c}}(e,t)||k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var P=(0,r.memo)((function e(t){var n=t.item,a=t.onItemClick,o=t.expandedItems,i=t.toggleExpanded,c=t.itemId,u=t.depth,s=void 0===u?0:u,d=n.items&&n.items.length>0,f=0===s,m=o[c]||!1,p=function(e){e.preventDefault(),f&&d&&i(c),a(n)};return r.createElement("li",{className:l()("outline-item",{"has-children":d&&f})},r.createElement("button",{type:"button",onClick:p,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),p(e))},className:l()("outline-link",{"is-expanded":m}),"aria-expanded":m},r.createElement("span",{className:"outline-text"},n.title),f&&d&&r.createElement("span",{className:l()("accordion-icon","icon",{"icon-chevron-up":m,"icon-chevron-down":!m}),"aria-hidden":"true"})),d&&r.createElement("ul",{className:l()("outline-children",{"is-collapsed":f&&!m})},n.items.map((function(t,n){return r.createElement(e,{key:n,item:t,onItemClick:a,expandedItems:o,toggleExpanded:i,itemId:"".concat(c,"-").concat(n),depth:s+1})}))))})),L=(0,r.memo)((function(e){var t=e.outline,n=e.onItemClick,a=S((0,r.useState)({}),2),o=a[0],i=a[1],c=(0,r.useCallback)((function(e){i((function(t){return x(x({},t),{},_({},e,!t[e]))}))}),[]);return t&&0!==t.length?r.createElement("nav",{className:"react-pdf__Outline","aria-label":"PDF Outline",role:"navigation"},r.createElement("ul",{role:"list"},t.map((function(e,t){return r.createElement(P,{key:t,item:e,onItemClick:n,expandedItems:o,toggleExpanded:c,itemId:"item-".concat(t),depth:0})})))):null})),I=function(e){var t=e.numPages,n=e.pageScale,a=e.onPageLoadSuccess,o=e.pageRefs,i=e.pageContainerRef,c=e.currentPage,l=e.pageBaseWidth,s=e.visiblePages,d=e.setVisiblePages,f=e.setCurrentPage,m=(0,r.useRef)({}),p=(0,r.useRef)(null),h=(0,r.useRef)(!1),v=(0,r.useRef)(null);(0,r.useEffect)((function(){var e=function(){h.current=!0,v.current&&clearTimeout(v.current),v.current=setTimeout((function(){h.current=!1}),150)},t=i.current;return t&&t.addEventListener("scroll",e,{passive:!0}),function(){t&&t.removeEventListener("scroll",e,{passive:!0}),v.current&&clearTimeout(v.current)}}),[i]),(0,r.useEffect)((function(){if(t){for(var e=new window.IntersectionObserver((function(e){p.current&&clearTimeout(p.current),p.current=setTimeout((function(){var n=e.filter((function(e){return e.isIntersecting})).map((function(e){return Number(e.target.getAttribute("data-pagenum"))}
1)).filter(Boolean);if(n.length){if(!h.current){var r=Math.min.apply(Math,w(n));r>0&&f(r)}d((function(e){var r=new Set(e);return n.forEach((function(e){for(var n=e-6;n<=e+6;n++)n>0&&n<=t&&r.add(n)})),c&&c>0&&c<=t&&r.add(c),Array.from(r)}))}}),20)}),{root:i.current,threshold:.2,rootMargin:"200px 0px"}),n=1;n<=t;n++){var r=m.current[n];r&&e.observe(r)}return function(){p.current&&clearTimeout(p.current),e.disconnect()}}}),[t,i,d,c,f]);var g=(0,r.useMemo)((function(){return l?Math.round(1.414*l):900}),[l]);return w(Array(t)).map((function(e,t){var i=t+1;return s.includes(i)?r.createElement("div",{key:"pagewrap_".concat(i),"data-pagenum":i,ref:function(e){e&&(m.current[i]=e,o.current[i]=e)}},r.createElement(u.A,{key:"page_".concat(i),pageNumber:i,scale:n,onLoadSuccess:function(e){return a(e)},renderAnnotationLayer:Math.abs(i-c)<=1,renderTextLayer:Math.abs(i-c)<=1})):r.createElement("div",{key:"placeholder_".concat(i),"data-pagenum":i,ref:function(e){e&&(m.current[i]=e,o.current[i]=e)},style:{height:g,marginBottom:20}})}))},A=function(e){(0,r.useEffect)((function(){s.EA.workerSrc||(s.EA.workerSrc="/etc.clientlibs/ifx/clientlibs/clientlib-site/resources/workers/pdf.worker.min.js")}),[]),(0,r.useEffect)((function(){var e=document.querySelector('[data-seo-content="true"]');e&&(e.style.cssText="\n                position: absolute !important;\n                left: -9999px !important;\n                top: auto !important;\n                width: 1px !important;\n                height: 1px !important;\n                overflow: hidden !important;\n                clip: rect(1px, 1px, 1px, 1px) !important;\n                clip-path: inset(50%) !important;\n                white-space: nowrap !important;\n            ",e.setAttribute("aria-hidden","true"))}),[]),(0,r.useEffect)((function(){var e=function(){document.querySelectorAll(".react-pdf__Page__annotations a").forEach((function(e){if(!e.textContent.trim()&&!e.getAttribute("aria-label")){var t=e.getAttribute("href");if(t){var n=t.length>50?"Link to ".concat(t.substring(0,50),"..."):"Link to ".concat(t);e.setAttribute("aria-label",n),e.setAttribute("title",t)}else e.setAttribute("aria-label","PDF internal link")}}))},t=setTimeout(e,500),n=new MutationObserver(e);return O.current&&n.observe(O.current,{childList:!0,subtree:!0}),function(){clearTimeout(t),n.disconnect()}}),[k,D]);var t=e.lang||"en",n=e.semantichtml||null,a=(0,r.useMemo)((function(){if(e.ispnname)return e.ispnname;var t=window.location.pathname,n=t.lastIndexOf(".html");-1!==n&&(t=t.substring(0,n));var r=t.lastIndexOf(".");return-1!==r&&r<t.length-1?t.substring(r+1):""}),[e.ispnname]),o=e.ispnnameurl||"",c=e.pdfquickviewapi||"",u=e.pricingapi||"",v=e.quickview||"Quick View",y=e.componentname||"HtmlPdfViewer",E="pdfQuickViewModal",x="pdfDistributerModal",_=S((0,r.useState)(null),2),k=_[0],N=_[1];var P,A,C=S((0,r.useState)((P=new URLSearchParams(window.location.search),A=parseInt(P.get("pno"),10),!isNaN(A)&&A>0?A:1)),2),D=C[0],T=C[1],O=(0,r.useRef)(null),j=S((0,r.useState)(null),2),M=j[0],F=j[1],R=S((0,r.useState)(1),2),V=R[0],q=R[1],U=S((0,r.useState)(!1),2),B=U[0],G=U[1],H=S((0,r.useState)(null),2),Q=H[0],W=H[1],J=S((0,r.useState)(null),2),$=J[0],z=J[1],X=S((0,r.useState)(!0),2),Y=X[0],K=X[1],Z=S((0,r.useState)(!1),2),ee=Z[0],te=Z[1],ne=S((0,r.useState)({}),2),re=ne[0],ae=ne[1],oe=S((0,r.useState)(""),2),ie=oe[0],ce=oe[1],le=S((0,r.useState)(""),2),ue=le[0],se=le[1],de=S((0,r.useState)(!1),2),fe=de[0],me=de[1],pe=S((0,r.useState)(""),2),he=pe[0],ve=pe[1],ge=(0,r.useRef)(null),ye=(0,r.useRef)({}),be=(0,r.useRef)(null),we=(0,r.useRef)(null),Ee=S((0,r.useState)([1,2,3]),2),xe=Ee[0],_e=Ee[1],Se=S((0,r.useState)(new Set),2),ke=Se[0],Ne=Se[1],Pe=S((0,r.useState)(!1),2),Le=Pe[0],Ie=(Pe[1],S((0,r.useState)(""),2)),Ae=Ie[0],Ce=Ie[1],De=S((0,r.useState)(!1),2),Te=De[0],Oe=De[1],je=function(){var e=o||a;e&&c&&(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"content_click",eventLabel:"Quick View",eventSource:y,eventSourceLabel:a||""}),ae({carouselispnId:a,carouselispnName:a,api:"".concat(c,".ptp.").concat(t,".").concat(e,".json?template")}),te(!0))};(0,r.useEffect)((function(){if(ee){var e=document.getElementById(E);if(e&&window.bootstrap)window.bootstrap.Modal.getOrCreateInstance(e).show();else e&&window.$&&window.$(e).modal("show")}}),[ee]);(0,r.useEffect)((function(){var e=function(){window.innerWidth<=992?G(!1):G(!0),we.current&&clearTimeout(we.current),we.current=setTimeout((function(){if(O.current&&M){var e=O.current.getBoundingClientRect().width;if(e){var t=Math.max(0,e-20),n=Math.max(.1,t/M);window.innerWidth>992?n*=.88:n*=1.05,q(n)}}}),200)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),we.current&&clearTimeout(we.current)}}),[M]);var Me=(0,r.useCallback)((function(e){z(e||[])}),[]),Fe=(0,r.useRef)();(0,r.useEffect)((function(){return function(){Fe.current&&clearTimeout(Fe.current)}}),[]);var Re=(0,r.useCallback)((function(e){Fe.current&&clearTimeout(Fe.current),Fe.current=setTimeout(b(g().mark((function t(){var n,r,a,o,i;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.pageNumber){t.next=4;break}n=e.pageNumber,t.next=19;break;case 4:if(!e.dest||!be.current){t.next=19;break}return t.prev=5,t.next=8,be.current.getDestination(e.dest);case 8:if(!((r=t.sent)&&r.length>0)){t.next=15;break}return a=r[0],t.next=13,be.current.getPageIndex(a);case 13:o=t.sent,n=o+1;case 15:t.next=19;break;case 17:t.prev=17,t.t0=t.catch(5);case 19:if(!n){t.next=28;break}if(T(n),!Le||!O.current){t.next=26;break}if(!(i=O.current.querySelector('[data-page="'.concat(n,'"]')))){t.next=26;break}return i.scrollIntoView({behavior:"smooth",block:"start"}),t.abrupt("return");case 26:_e((function(e){for(var t=new Set(e),r=n-5;r<=n+5;r++)r>0&&r<=k&&t.add(r);return Array.from(t)})),requestAnimationFrame((function(){setTimeout((function(){var e=ye.current[n];if(e&&O.current){e.scrollIntoView({behavior:"smooth",block:"start"})}}),300)}));case 28:case"end":return t.stop()}}),t,null,[[5,17]])}))),120)}),[k,Le]),Ve=(0,r.useRef)({});(0,r.useEffect)((function(){k&&ke.size>=Math.min(3,k)&&K(!1)}),[k,ke]),(0,r.useEffect)((function(){if(O.current&&M){var e=O.current.getBoundingClientRect().width;if(e){var t=Math.max(0,e-20),n=Math.max(.1,t/M);window.innerWidth>992?n*=.88:n*=1.05,q(n)}}}),[M]);var qe=(0,r.useCallback)((function(e,t){return['<section class="pdf-page-fallback"><h3>Page '.concat(t,"</h3><p>"),e.items.map((function(e){return e.str})).join(" "),"</p></section>"].join("")}),[]);(0,r.useCallback)(b(g().mark((function t(){var n,r,a,o,i,c,l,u;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.pdfpath){t.next=3;break}
1return W("PDF path not provided for conversion"),t.abrupt("return");case 3:if(Oe(!0),t.prev=4,(n=e.pdfpath).startsWith("http"))try{r=new URL(n),n=r.pathname}catch(e){n=n.replace(/^https?:\/\/[^\/]+/,"")}return n.startsWith("/")||(n="/"+n),n.includes(".html")&&(n=n.replace(/\.html.*$/,"")),t.next=11,fetch("/bin/ifx/pdf/convert?path=".concat(encodeURIComponent(n)),{method:"GET",headers:{Accept:"application/json"}});case 11:if((a=t.sent).ok){t.next=17;break}return t.next=15,a.text();case 15:throw t.sent,new Error("Backend conversion failed (".concat(a.status,"): ").concat(a.statusText));case 17:return t.next=19,a.json();case 19:if(!(o=t.sent).success||!o.html){t.next=24;break}Ce(o.html),t.next=25;break;case 24:throw new Error(o.error||"Backend returned no HTML content");case 25:t.next=55;break;case 27:if(t.prev=27,t.t0=t.catch(4),W("Backend conversion failed: ".concat(t.t0.message,". Using basic text extraction...")),t.prev=30,!be.current||!k){t.next=49;break}i=['<article class="pdf-semantic-fallback"><header><h2>PDF Content (Basic Text Extraction)</h2></header>'],c=1;case 34:if(!(c<=k)){t.next=45;break}return t.next=37,be.current.getPage(c);case 37:return l=t.sent,t.next=40,l.getTextContent();case 40:u=t.sent,i.push(qe(u,c));case 42:c++,t.next=34;break;case 45:i.push("</article>"),Ce(i.join("")),t.next=50;break;case 49:throw new Error("PDF document not loaded");case 50:t.next=55;break;case 52:t.prev=52,t.t1=t.catch(30),W("Conversion failed: ".concat(t.t0.message,". Fallback also failed: ").concat(t.t1.message));case 55:return t.prev=55,Oe(!1),t.finish(55);case 58:case"end":return t.stop()}}),t,null,[[4,27,55,58],[30,52]])}))),[e.pdfpath,k]);(0,r.useEffect)((function(){if(Le&&!Ae&&!Te)if(n)Ce(n),K(!1);else if(Oe(!0),be.current&&k){var e=['<article class="pdf-semantic-fallback"><header><h2>PDF Content (Basic Text Extraction)</h2><p style="color: #856404; background: #fff3cd; padding: 10px; border-radius: 4px;">Server-side conversion unavailable. Displaying basic text extraction.</p></header>'];Promise.all(Array.from({length:k},(function(e,t){return t+1})).map(function(){var e=b(g().mark((function e(t){var n,r;return g().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,be.current.getPage(t);case 3:return n=e.sent,e.next=6,n.getTextContent();case 6:return r=e.sent,e.abrupt("return",qe(r,t));case 10:return e.prev=10,e.t0=e.catch(0),e.abrupt("return",'<section class="pdf-page-fallback"><h3>Page '.concat(t,"</h3><p>Error loading page</p></section>"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t){return e.apply(this,arguments)}}())).then((function(t){e.push.apply(e,w(t)),e.push("</article>"),Ce(e.join("")),Oe(!1),K(!1)})).catch((function(e){W("Text extraction failed: ".concat(e.message)),Oe(!1),K(!1)}))}else W("PDF not loaded - cannot extract text"),Oe(!1),K(!1)}),[Le,Ae,Te,n,k,qe]);var Ue=(0,r.useMemo)((function(){return window.location.origin+e.pdfpath}),[e.pdfpath]),Be=(0,r.useMemo)((function(){return e.partpagepath}),[e.partpagepath]),Ge=$&&$.length>0,He=Array.isArray($);return(0,r.useEffect)((function(){He&&G(Ge)}),[He,Ge]),r.createElement("main",{className:l()("ifx_pdf_viewer","add-gaps",null!=e&&e.margin?e.margin:"")},r.createElement(i.m,null,r.createElement("title",null,"PDF Viewer".concat(a?" - "+a:"")),r.createElement("meta",{name:"description",content:a?"View and download PDF for ".concat(a,"."):"View and download PDF."}),r.createElement("meta",{property:"og:title",content:"PDF Viewer".concat(a?" - "+a:"")}),r.createElement("meta",{property:"og:description",content:a?"View and download PDF for ".concat(a,"."):"View and download PDF."}),r.createElement("meta",{property:"og:type",content:"document"}),Ae&&r.createElement("meta",{name:"robots",content:"index, follow"})),r.createElement(h.A,{isOpen:Y||Te}),Q&&r.createElement("section",{className:"ifx_pdf_viewer__error",role:"alert","aria-live":"assertive"},r.createElement("p",null,Q),r.createElement("button",{onClick:function(){return W(null)}},"Dismiss")),r.createElement("section",{className:"ifx_pdf_viewer__layout"},r.createElement(d.A,{file:Ue,onLoadSuccess:function(e){N(e.numPages),W(null),be.current=e,K(!1)},onLoadError:function(e){console.log("PDF Document Load Error:",e),console.log("PDF File Path:",Ue),W("Error loading PDF: ".concat(e.message)),K(!1)}},r.createElement("div",{style:{display:"flex",width:"100%"}},r.createElement("aside",{className:l()("content-container","ifx_pdf_viewer__menu",{"is-collapsed":!B}),"aria-label":"PDF Navigation Menu"},r.createElement("header",{className:"ifx_pdf_viewer__menuHeader"},r.createElement("div",{className:"ifx_pdf_viewer__menuHeaderLeft"},r.createElement("button",{type:"button",className:"ifx_pdf_viewer__menuIconButton","aria-label":B?"Collapse menu":"Expand menu",onClick:function(){return G((function(e){return!e}))}},r.createElement("span",{className:"icon icon-menu","aria-hidden":"true"})),r.createElement("h2",{className:"ifx_pdf_viewer__menuTitle"},"Menu")),B&&r.createElement("button",{type:"button",className:"ifx_pdf_viewer__menuToggle","aria-label":"Collapse menu",onClick:function(){return G(!1)}},r.createElement("span",{className:l()("icon","icon-double-chevron-left"),"aria-hidden":"true"}))),r.createElement("div",{className:"ifx_pdf_viewer__menuBody","aria-hidden":!B},!Y&&r.createElement(f.A,{onItemClick:Re,onLoadSuccess:Me,className:"hidden-outline"}),$&&r.createElement(L,{outline:$,onItemClick:Re})),r.createElement("nav",{className:"ifx_pdf_button_container","aria-label":"PDF Actions"},r.createElement("div",{className:"ifx_pdf_viewer__menuActions"},Be&&r.createElement("a",{className:"ifx_pdf_viewer__menuAction",href:Be,target:"_blank",rel:"noopener noreferrer","aria-label":"View Part Page",title:"View Part Page",onClick:function(){window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"navigation_click",eventLabel:"View Part Page",eventSource:y,eventSourceLabel:o||a||""})}},r.createElement("span",{className:"icon icon-document","aria-hidden":"true"}),r.createElement("span",{className:"ifx_pdf_viewer__menuActionText"},"View Part Page")),!o&&!a||!c?null:r.createElement("button",{className:"ifx_pdf_viewer__menuAction","data-bs-toggle":"modal","data-bs-target":"#pdfQuickViewModal",onClick:je,"aria-label":"Quick View",title:"Quick View"},r.createElement("span",{className:"icon icon-show","aria-hidden":"true"}),r.createElement("span",{className:"ifx_pdf_viewer__menuActionText"},v)),r.createElement("a",{className:"ifx_pdf_viewer__menuAction",href:Ue,download:!0,"aria-label":"Download PDF",title:"Download PDF",onClick:function(){var n,r=window.location.origin+e.pdfpath,o=(null===(n=e.pdfpath)||void 0===n?void 0:n.split("/").pop())||"PDF Document";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"download",eventLabel:o,eventSource:y,eventSourceLabel:a||"",fileCategory:"PDF Document",fileDisplayTitle:o,fileId:"",fileAcce
1ssMode:"",fileConfidentialityLevel:"",fileDownloadUrl:r,fileProductLine:"",fileDivision:"",fileDivisionID:"",filePrimaryISPN:a||"",fileLanguage:t,isGated:!1,assetDamPath:e.pdfpath||"",chronicleId:""})}},r.createElement("span",{className:"icon icon-download","aria-hidden":"true"}),r.createElement("span",{className:"ifx_pdf_viewer__menuActionText"},"Download"))))),r.createElement("section",{ref:O,className:"pdf-container ifx_pdf_viewer__pages",role:"main","aria-label":"PDF Content"},Le?r.createElement("div",{className:"pdf-semantic-view",style:{display:"block"},role:"article","aria-label":"Semantic PDF Content"},Ae&&r.createElement("div",{dangerouslySetInnerHTML:{__html:Ae}})):k&&r.createElement(I,{numPages:k,pageScale:V,onPageLoadSuccess:function(e){try{if(!M){var t=e.getViewport({scale:1});F(t.width)}}catch(e){W("Error loading page viewport")}Ne((function(t){var n=new Set(t);return n.add(e.pageNumber),n})),be.current&&e.pageNumber<k&&!Ve.current[e.pageNumber+1]&&be.current.getPage(e.pageNumber+1).then((function(){Ve.current[e.pageNumber+1]=!0})).catch((function(){}))},pageRefs:ye,pageContainerRef:O,currentPage:D,pageBaseWidth:M,visiblePages:xe,setVisiblePages:_e,setCurrentPage:T}))))),r.createElement("div",{className:"modal fade quickViewModal",id:E,tabIndex:"-1","aria-labelledby":E,"aria-hidden":"true"},r.createElement("div",{className:"modal-dialog quickViewModalConatiner"},r.createElement("div",{className:"modal-content"},r.createElement("header",{className:"modal-header"},r.createElement("button",{type:"button",className:"icon icon-cross btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){return te(!1)}})),r.createElement("div",{className:"modal-body p-0"},ee&&r.createElement(m.A,{data:"string"==typeof re?{api:re}:re,componentName:y,lang:t,modalId:E,distributerModalId:x,distributer:!0,pricingApi:u,mpns:a,distributorModalData:function(e,t,n,r){ce(e),se(t),me(n),ve(r),te(!1)},setDistisModelOpen:me}))))),fe&&r.createElement("div",{className:"modal fade distributedDialogModal",tabIndex:"-1","aria-hidden":!fe,id:x,ref:ge},r.createElement("div",{className:"modal-dialog modal-dialog-centered modal-lg"},r.createElement("div",{className:"modal-content"},r.createElement("header",{className:"modal-header"},r.createElement("h5",{className:"modal-title",id:"distModalLabel"},ue),r.createElement("button",{type:"button",className:"icon icon-cross btn-close","data-bs-dismiss":"modal","aria-label":"Close",onClick:function(){document.querySelectorAll(".modal-backdrop").forEach((function(e){return e.remove()}))}})),r.createElement("div",{className:"modal-body"},r.createElement(p.A,{lang:t,mpn:ie,componentName:he}))))))};A.propTypes={pdfpath:o().string.isRequired,lang:o().string,ispnname:o().string,ispnnameurl:o().string,semantichtml:o().string,pdfquickviewapi:o().string,pricingapi:o().string,quickview:o().string,componentname:o().string,margin:o().string,partpagepath:o().string},t.default=A},8750:function(e,t,n){var r=n(6540),a=n(8032),o=n(6508);t.A=function(e){return r.createElement(a.A,{show:e.isOpen,className:"spinner-loader"},r.createElement(a.A.Body,null,r.createElement(o.A,null)))}}}]);

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.