PageSourceSearch

https://www.infineon.com/etc.clientlibs/ifx/clientlibs/clientlib-s…/chunks/8397.2fef4be10cf8cc06e47d.js

js infineon.com collected 2026-09-24 08:35:34 UTC 15,305 bytes, 1 lines download raw bytes

vendor: 5,084 bytes, line 1
1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[8397],{9265:function(e,t,r){r.r(t);var n=r(6540),a=r(3819);function o(e){return o="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},o(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),l=new T(n||[]);return a(i,"_invoke",{value:O(e,r,l)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",y="completed",g={};function b(){}function E(){}function w(){}var N={};f(N,c,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(I([])));x&&x!==r&&n.call(x,c)&&(N=x);var S=w.prototype=b.prototype=Object.create(N);function L(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function r(a,i,l,c){var u=h(e[a],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,l,c)}),(function(e){r("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function a(){return new t((function(t,a){r(e,n,t,a)}))}return i=i?i.then(a,a):a()}})}function O(t,r,n){var a=m;return function(o,i){if(a===v)throw Error("Generator is already running");if(a===y){if("throw"===o)throw i;return{value:e,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var c=C(l,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===m)throw a=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var u=h(t,r,n);if("normal"===u.type){if(a=n.done?y:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=y,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,a=t.iterator[n];if(a===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,g;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function j(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){for(;++a<t.length;)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(o(t)+" is not iterable")}return E.prototype=w,a(S,"constructor",{value:w,configurable:!0}),a(w,"constructor",{value:E,configurable:!0}),E.displayName=f(w,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},L(_.prototype),f(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new _(d(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},L(S),f(S,s,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,T.prototype={constructor:T,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.forEac
1h(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(c){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 r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.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,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;A(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(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 c(e,t,r,n,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void r(e)}l.done?t(c):Promise.resolve(c).then(n,a)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],c=!0,u=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(e){u=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,t)||s(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 s(e,t){if(e){if("string"==typeof e)return f(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}t.default=function(e){var t,r=u((0,n.useState)([]),2),s=r[0],f=r[1],d=u((0,n.useState)(0),2),h=d[0],m=d[1],p=u((0,n.useState)(!1),2),v=p[0],y=p[1],g=u((0,n.useState)([]),2),b=g[0],E=g[1],w=u((0,n.useState)("all"),2),N=w[0],k=w[1],x=u((0,n.useState)("all"),2),S=x[0],L=x[1],_=u((0,n.useState)(""),2),O=_[0],C=_[1],j=u((0,n.useState)([]),2),A=j[0],T=j[1],I=u((0,n.useState)([]),2),P=I[0],G=I[1],F=u((0,n.useState)(!0),2),R=F[0],D=F[1];(0,n.useEffect)((function(){Y()}),[]);var Y=function(){var t,r=(t=i().mark((function t(){var r,n,a,o,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(null==e?void 0:e.api);case 3:return a=t.sent,t.next=6,a.json();case 6:o=t.sent,f(null==o?void 0:o.distributionData),E(null==o?void 0:o.distributionData),c=null==o||null===(r=o.categories)||void 0===r?void 0:r.map((function(e){return e.name})),u=null==o||null===(n=o.regions)||void 0===n?void 0:n.map((function(e){return e.name})),G(["Region"].concat(l(u))),T(["Category"].concat(l(c))),t.next=17;break;case 15:t.prev=15,t.t0=t.catch(0);case 17:case"end":return t.stop()}}),t,null,[[0,15]])})),function(){var e=this,r=arguments;
1return new Promise((function(n,a){var o=t.apply(e,r);function i(e){c(o,n,a,i,l,"next",e)}function l(e){c(o,n,a,i,l,"throw",e)}i(void 0)}))});return function(){return r.apply(this,arguments)}}(),M=function(e,t,r){var n=s;"all"!==e&&(n=n.filter((function(t){var r;return(null==t||null===(r=t.category)||void 0===r?void 0:r.name.toLowerCase())===e.toLowerCase()}))),"all"!==t&&(n=n.filter((function(e){var r;return(null==e||null===(r=e.region)||void 0===r?void 0:r.name.toLowerCase())===t.toLowerCase()}))),r&&(n=n.filter((function(e){var t,n;return(null==e||null===(t=e.category)||void 0===t?void 0:t.name.toLowerCase().includes(r.toLowerCase()))||(null==e||null===(n=e.region)||void 0===n?void 0:n.name.toLowerCase().includes(r.toLowerCase()))}))),E(n)},U=function(e){var t=e.target,r=t.value;t.checked?(L(r),M(N,r,O)):(L("all"),M(N,"all",O))},$=function(e){var t=e.target,r=t.value;t.checked?(k(r),M(r,S,O)):(k("all"),M("all",S,O))};(0,n.useEffect)((function(){m((S&&"all"!==S?1:0)+(N&&"all"!==N?1:0))}),[S,N]);var q,z,B=function(){D(!R)},H=(z="category",(q=b).length>0&&q.reduce((function(e,t){var r=t[z].name;return e[r]=e[r]||[],e[r].push(t),e}),{}));return n.createElement("div",null,(null==A?void 0:A.length)>0&&(null==P?void 0:P.length)>0?n.createElement("div",{className:"App"},n.createElement("h1",{className:"distributor_heading"},"Find a Distributor"),n.createElement("h5",{className:"distributor_Sub_heading"},"Optional description communi observantia non est recedendum. Nihilne te nocturnum praesidium Palati, nihil urbis vigiliae."),n.createElement("div",{className:"distributor_filter_block"},n.createElement("label",{className:"filter-label icon icon-search"},n.createElement("input",{className:"input-details",type:"search",placeholder:"Filter",value:O,onChange:function(e){var t=e.target.value;C(t),M(N,S,t)}})),n.createElement("div",{className:"desktop-dropdowns"},n.createElement("select",{className:"distribution_dropdown",name:"Region",value:S,onChange:function(e){var t=e.target.value;L(t),M(N,t,O)}},null==P?void 0:P.map((function(e,t){return n.createElement("option",{key:t,value:e},e)})))),n.createElement("div",{className:"desktop-dropdowns"},n.createElement("select",{className:"distribution_dropdown",name:"Category",value:N,onChange:function(e){var t=e.target.value;k(t),M(t,S,O)}},null==A?void 0:A.map((function(e,t){return n.createElement("option",{key:t,value:e},e)})))),n.createElement("div",{className:"mobile-dropdowns"},n.createElement("button",{className:h>0?"filter-applied-btn":"filter-btn",onClick:function(){y(!v)}},n.createElement("div",{className:"filter-icon icon icon-preferences"})," ",n.createElement("div",{className:"filter-count"},h))),n.createElement("div",{className:"distribution_reset_button"},n.createElement("span",{alt:"resetIcon",className:"distribution_reset_icon icon icon-curved-arrow-left"}),n.createElement("span",{className:"distribution_reset_Text",onClick:function(){k("all"),L("all"),C(""),E(s)}},"Reset all"))),v&&n.createElement("div",{className:"dropdown-content"},n.createElement("div",{className:"accordion"},n.createElement("div",{className:"accordion-header"},n.createElement("button",{className:"accordion-button icon icon-plus",onClick:B,"data-bs-toggle":"collapse","data-bs-target":"#panelsStayOpen-collapseTwo","aria-expanded":"true","aria-controls":"panelsStayOpen-collapseTwo"},"Region")),n.createElement("div",{id:"panelsStayOpen-collapseTwo",className:"accordion-collapse collapse show","aria-labelledby":"panelsStayOpen-headingTwo"},n.createElement("div",{className:"accordion-body"},P.slice(1).map((function(e){return n.createElement("label",{key:e,className:"checkbox-label"},e,n.createElement("input",{type:"checkbox",value:e,onChange:U,className:"status-checkbox",checked:S===e}))}))))),n.createElement("div",{className:"accordion"},n.createElement("div",{className:"accordion-header"},n.createElement("button",{className:"accordion-button icom icon-plus",onClick:B,"data-bs-toggle":"collapse","data-bs-target":"#panelsStayOpen-collapseOne","aria-expanded":"true","aria-controls":"panelsStayOpen-collapseOne"},"Category")),n.createElement("div",{id:"panelsStayOpen-collapseOne",className:"accordion-collapse collapse show ","aria-labelledby":"panelsStayOpen-headingOne"},n.createElement("div",{className:"accordion-body"},A.slice(1).map((function(e){return n.createElement("label",{key:e,className:"checkbox-label"}
1,e,n.createElement("input",{type:"checkbox",value:e,onChange:$,className:"status-checkbox",checked:N===e}))})))))),"object"===o(H)&&Object.keys(H).length>0?null===(t=Object.keys(H))||void 0===t?void 0:t.map((function(e){var t;return n.createElement("div",{className:"containerCategory",key:e},n.createElement("h2",{className:"distribution-category"},e),n.createElement("div",{className:"card-container"},null===(t=H[e])||void 0===t?void 0:t.map((function(e){var t;return n.createElement("div",{className:"card",key:e.id},n.createElement("span",null,n.createElement(a.A,{key:"img_".concat(e.id),alt:"distributorLogo",src:null==e||null===(t=e.distributor)||void 0===t?void 0:t.logo})),n.createElement("div",{className:"distribution-category-container"},n.createElement("h3",{className:"distributor_heading"},e.distributor.name),n.createElement("p",null,e.distributor.email),n.createElement("p",null,e.distributor.phone),n.createElement("span",null,n.createElement("a",{href:e.distributor.url},n.createElement("span",{alt:"arrorIcon",className:"icon icon-arrow-right"})))))}
1))))})):n.createElement("div",{className:"no-result-message"},null==e?void 0:e.noresmessage)):n.createElement("div",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.