PageSourceSearch

https://ir.traton.com/_app/immutable/nodes/43.D566VenQ.js

js traton.com collected 2026-10-02 05:23:28 UTC 12,723 bytes, 7 lines download raw bytes

1import{s as te,n as U,d as u,i as y,w as S,o as ne,B as ye,a as J,j as W,t as G,b as c,c as w,e as _,g as b,f as T,k as ke,l as p,m as I,H as Ce,z as ee,x as Te,h as Ie}from"../chunks/DZvRT-3J.js";import{S as re,i as le,d as B,t as L,a as H,m as V,c as X,b as z,g as we,e as xe}from"../chunks/CvglDdp-.js";import{B as Se}from"../chunks/Crb6m_-R.js";import{B as Ne}from"../chunks/rdmIi9Ol.js";import{p as Me}from"../chunks/4VxxPKpp.js";import{e as ve}from"../chunks/D1G3gbn2.js";import{t as fe}from"../chunks/BOJ8JyqZ.js";import{a3 as ie,b as Le,c as He}from"../chunks/B6d__xEV.js";import{j as De,s as Pe}from"../chunks/fKwyliMk.js";import{L as qe}from"../chunks/B1-0tM03.js";function be(o,t,r){const e=o.slice();return e[2]=t[r],e}function Ae(o){let t=o[1]("common.noItemsFound")+"",r;return{c(){r=G(t)},l(e){r=W(e,t)},m(e,n){y(e,r,n)},p(e,n){n&2&&t!==(t=e[1]("common.noItemsFound")+"")&&J(r,t)},d(e){e&&u(r)}}}function Fe(o){let t,r=ve(o[0].content),e=[];for(let n=0;n<r.length;n+=1)e[n]=Ee(be(o,r,n));return{c(){for(let n=0;n<e.length;n+=1)e[n].c();t=S()},l(n){for(let l=0;l<e.length;l+=1)e[l].l(n);t=S()},m(n,l){for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(n,l);y(n,t,l)},p(n,l){if(l&1){r=ve(n[0].content);let a;for(a=0;a<r.length;a+=1){const m=be(n,r,a);e[a]?e[a].p(m,l):(e[a]=Ee(m),e[a].c(),e[a].m(t.parentNode,t))}for(;a<e.length;a+=1)e[a].d(1);e.length=r.length}},d(n){n&&u(t),ye(e,n)}}}function Ee(o){var k,A;let t,r,e=((k=o[2].querySelector("headline"))==null?void 0:k.textContent)+"",n,l,a,m=((A=o[2].querySelector("dateTime"))==null?void 0:A.textContent)+"",f,i,d,s,h=ie(o[2].querySelector("content").textContent)+"",v;return{c(){t=p("div"),r=p("h2"),n=G(e),l=I(),a=p("strong"),f=G(m),i=I(),d=p("p"),s=new Ce(!1),v=I(),this.h()},l(E){t=_(E,"DIV",{class:!0});var g=b(t);r=_(g,"H2",{});var D=b(r);n=W(D,e),D.forEach(u),l=T(g),a=_(g,"STRONG",{});var x=b(a);f=W(x,m),x.forEach(u),i=T(g),d=_(g,"P",{class:!0});var N=b(d);s=ke(N,!1),N.forEach(u),v=T(g),g.forEach(u),this.h()},h(){s.a=null,w(d,"class","mt-3"),w(t,"class","mb-5")},m(E,g){y(E,t,g),c(t,r),c(r,n),c(t,l),c(t,a),c(a,f),c(t,i),c(t,d),s.m(h,d),c(t,v)},p(E,g){var D,x;g&1&&e!==(e=((D=E[2].querySelector("headline"))==null?void 0:D.textContent)+"")&&J(n,e),g&1&&m!==(m=((x=E[2].querySelector("dateTime"))==null?void 0:x.textContent)+"")&&J(f,m),g&1&&h!==(h=ie(E[2].querySelector("content").textContent)+"")&&s.p(h)},d(E){E&&u(t)}}}function je(o){let t;function r(l,a){return l[0]&&l[0].content&&l[0].content.length>0?Fe:Ae}let e=r(o),n=e(o);return{c(){n.c(),t=S()},l(l){n.l(l),t=S()},m(l,a){n.m(l,a),y(l,t,a)},p(l,[a]){e===(e=r(l))&&n?n.p(l,a):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},i:U,o:U,d(l){l&&u(t),n.d(l)}}}function Oe(o,t,r){let e;ne(o,fe,l=>r(1,e=l));let{data:n=null}=t;return o.$$set=l=>{"data"in l&&r(0,n=l.data)},[n,e]}class Be extends re{constructor(t){super(),le(this,t,Oe,je,te,{data:0})}}function Ve(o){let t=o[1]("common.noItemsFound")+"",r;return{c(){r=G(t)},l(e){r=W(e,t)},m(e,n){y(e,r,n)},p(e,n){n&2&&t!==(t=e[1]("common.noItemsFound")+"")&&J(r,t)},d(e){e&&u(r)}}}function Xe(o){var g,D,x,N;let t,r,e,n="Name:",l,a,m=((D=(g=o[0].content)==null?void 0:g.default)==null?void 0:D.name)+"",f,i,d,s,h="Price:",v,k,A=((N=(x=o[0].content)==null?void 0:x.default)==null?void 0:N.closePrice)+"",E;return{c(){t=p("table"),r=p("tr"),e=p("td"),e.textContent=n,l=I(),a=p("td"),f=G(m),i=I(),d=p("tr"),s=p("td"),s.textContent=h,v=I(),k=p("td"),E=G(A)},l(C){t=_(C,"TABLE",{});var P=b(t);r=_(P,"TR",{});var F=b(r);e=_(F,"TD",{"data-svelte-h":!0}),ee(e)!=="svelte-1h12c2b"&&(e.textContent=n),l=T(F),a=_(F,"TD",{});var M=b(a);f=W(M,m),M.forEach(u),F.forEach(u),i=T(P),d=_(P,"TR",{});var j=b(d);s=_(j,"TD",{"data-svelte-h":!0}),ee(s)!=="svelte-fhzk63"&&(s.textContent=h),v=T(j),k=_(j,"TD",{});var q=b(k);E=W(q,A),q.forEach(u),j.forEach(u),P.forEach(u)},m(C,P){y(C,t,P),c(t,r),c(r,e),c(r,l),c(r,a),c(a,f),c(t,i),c(t,d),c(d,s),c(d,v),c(d,k),c(k,E)},p(C,P){var F,M,j,q;P&1&&m!==(m=((M=(F=C[0].content)==null?void 0:F.default)==null?void 0:M.name)+"")&&J(f,m),P&1&&A!==(A=((q=(j=C[0].content)==null?void 0:j.default)==null?void 0:q.closePrice)+"")&&J(E,A)},d(C){C&&u(t)}
1}}function ze(o){let t;function r(l,a){return l[0]&&l[0].content?Xe:Ve}let e=r(o),n=e(o);return{c(){n.c(),t=S()},l(l){n.l(l),t=S()},m(l,a){n.m(l,a),y(l,t,a)},p(l,[a]){e===(e=r(l))&&n?n.p(l,a):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},i:U,o:U,d(l){l&&u(t),n.d(l)}}}function Re(o,t,r){let e;ne(o,fe,l=>r(1,e=l));let{data:n=null}=t;return o.$$set=l=>{"data"in l&&r(0,n=l.data)},[n,e]}class Ue extends re{constructor(t){super(),le(this,t,Re,ze,te,{data:0})}}function Je(o){let t=o[1]("common.noItemsFound")+"",r;return{c(){r=G(t)},l(e){r=W(e,t)},m(e,n){y(e,r,n)},p(e,n){n&2&&t!==(t=e[1]("common.noItemsFound")+"")&&J(r,t)},d(e){e&&u(r)}}}function We(o){let t,r=ie(o[0].content)+"",e;return{c(){t=new Ce(!1),e=S(),this.h()},l(n){t=ke(n,!1),e=S(),this.h()},h(){t.a=e},m(n,l){t.m(r,n,l),y(n,e,l)},p(n,l){l&1&&r!==(r=ie(n[0].content)+"")&&t.p(r)},d(n){n&&(u(e),t.d())}}}function Ge(o){let t;function r(l,a){return l[0]?We:Je}let e=r(o),n=e(o);return{c(){n.c(),t=S()},l(l){n.l(l),t=S()},m(l,a){n.m(l,a),y(l,t,a)},p(l,[a]){e===(e=r(l))&&n?n.p(l,a):(n.d(1),n=e(l),n&&(n.c(),n.m(t.parentNode,t)))},i:U,o:U,d(l){l&&u(t),n.d(l)}}}function Ke(o,t,r){let e;ne(o,fe,l=>r(1,e=l));let{data:n=null}=t;return o.$$set=l=>{"data"in l&&r(0,n=l.data)},[n,e]}class Qe extends re{constructor(t){super(),le(this,t,Ke,Ge,te,{data:0})}}const Ye=async o=>{const t=new URL(De(He,Le,`content/external_contents/slug/${o}`));return await Pe(t,void 0)},Ze=async(o,t)=>{try{const r=await Ye(o);if(!r.ok)return console.error("Network response was not ok"),null;const e=r.headers.get("content-type")||"";return e.includes("xml")?{content:await nt(r,t),contentType:e}:e.includes("json")?{content:await tt(r),contentType:e}:e.includes("html")?{content:await et(r),contentType:e}:(console.error("Unsupported content type:",e),null)}catch(r){return console.error("Error fetching external content:",r),null}},et=async o=>{try{return await o.text()}catch(t){return console.error("Error parsing HTML:",t),null}},tt=async o=>{try{return await o.json()}catch(t){return console.error("Error parsing JSON:",t),null}},nt=async(o,t="item")=>{try{const r=await o.text(),n=new DOMParser().parseFromString(r,"application/xml"),l=n.querySelector("parsererror");if(l)throw new Error("Error parsing XML: "+l.textContent);return Array.from(n.querySelectorAll(t))}catch(r){return console.error("Error parsing XML:",r),null}};function rt(o){let t=o[3]("common.noItemsFound")+"",r;return{c(){r=G(t)},l(e){r=W(e,t)},m(e,n){y(e,r,n)},p(e,n){n&8&&t!==(t=e[3]("common.noItemsFound")+"")&&J(r,t)},i:U,o:U,d(e){e&&u(r)}}}function lt(o){let t,r,e,n,l,a,m;const f=[st,at,ot],i=[];function d(s,h){return h&4&&(t=null),h&4&&(r=null),h&4&&(e=null),t==null&&(t=!!s[2].includes("xml")),t?0:(r==null&&(r=!!s[2].includes("json")),r?1:(e==null&&(e=!!s[2].includes("html")),e?2:-1))}return~(n=d(o,-1))&&(l=i[n]=f[n](o)),{c(){l&&l.c(),a=S()},l(s){l&&l.l(s),a=S()},m(s,h){~n&&i[n].m(s,h),y(s,a,h),m=!0},p(s,h){let v=n;n=d(s,h),n===v?~n&&i[n].p(s,h):(l&&(we(),L(i[v],1,1,()=>{i[v]=null}),xe()),~n?(l=i[n],l?l.p(s,h):(l=i[n]=f[n](s),l.c()),H(l,1),l.m(a.parentNode,a)):l=null)},i(s){m||(H(l),m=!0)},o(s){L(l),m=!1},d(s){s&&u(a),~n&&i[n].d(s)}}}function ot(o){let t,r;return t=new Qe({props:{data:o[1]}}),{c(){z(t.$$.fragment)},l(e){X(t.$$.fragment,e)},m(e,n){V(t,e,n),r=!0},p(e,n){const l={};n&2&&(l.data=e[1]),t.$set(l)},i(e){r||(H(t.$$.fragment,e),r=!0)},o(e){L(t.$$.fragment,e),r=!1},d(e){B(t,e)}}}function at(o){let t,r;return t=new Ue({props:{data:o[1]}}),{c(){z(t.$$.fragment)},l(e){X(t.$$.fragment,e)},m(e,n){V(t,e,n),r=!0},p(e,n){const l={};n&2&&(l.data=e[1]),t.$set(l)},i(e){r||(H(t.$$.fragment,e),r=!0)},o(e){L(t.$$.fragment,e),r=!1},d(e){B(t,e)}}}function st(o){let t,r;return t=new Be({props:{data:o[1]}}),{c(){z(t.$$.fragment)},l(e){X(t.$$.fragment,e)},m(e,n){V(t,e,n),r=!0},p(e,n){const l={};n&2&&(l.data=e[1]),t.$set(l)},i(e){r||(H(t.$$.fragment,e),r=!0)},o(e){L(t.$$.fragment,e),r=!1},d(e){B(t,e)}}}function ct(o){let t,r,e,n;const l=[lt,rt],a=[];function m(f,i){return f[1]&&f[1].content?0:1}return t=m(o),r=a[t]=l[t](o),{c(){r.c(),e=S()},l(f){r.l(f),e=S()},m(f,i){a[t].m(f,i),y(f,e,i),n=!0},p(f,i){let d=t;t=m(f),t===d?a[t].p(f,i):(we(),L(a[d],1,1,()=>{a[d]=null}),xe(),r=a[t],r?r.p(f,i):(r=a[t]=l[t](f),r.c()),H(r,1),r.m(e.parentNode,e))},i(f){n||(H(r),n=!0)},o(f){L(r),n=!1},d(f){f&&u(e),a[t].d(f)}}}function it(o){let t,r;
1return t=new qe({props:{loader:o[0],$$slots:{default:[ct]},$$scope:{ctx:o}}}),{c(){z(t.$$.fragment)},l(e){X(t.$$.fragment,e)},m(e,n){V(t,e,n),r=!0},p(e,[n]){const l={};n&1&&(l.loader=e[0]),n&78&&(l.$$scope={dirty:n,ctx:e}),t.$set(l)},i(e){r||(H(t.$$.fragment,e),r=!0)},o(e){L(t.$$.fragment,e),r=!1},d(e){B(t,e)}}}function ft(o,t,r){let e;ne(o,fe,i=>r(3,e=i));let{slug:n=null}=t,{targetNode:l="item"}=t,a=!0,m=null,f="";return Te(async()=>{if(n)try{r(1,m=await Ze(n,l)),m&&r(2,f=m.contentType)}catch(i){console.error("Error fetching external data:",i)}finally{r(0,a=!1)}else r(0,a=!1),console.error("Slug is null")}),o.$$set=i=>{"slug"in i&&r(4,n=i.slug),"targetNode"in i&&r(5,l=i.targetNode)},[a,m,f,e,n,l]}class me extends re{constructor(t){super(),le(this,t,ft,it,te,{slug:4,targetNode:5})}}function ut(o){let t,r,e,n,l,a,m,f,i,d,s,h,v,k,A=`External Content (HTML)
2                            <small>Show data from external HTML (Add feed url in CMS-&gt; Website
3                                Content-&gt; External Content)</small>`,E,g,D,x,N,C,P=`External Content (JSON)
4                            <small>Show data from external feed (Add feed url in CMS-&gt; Website
5                                Content-&gt; External Content)</small>`,F,M,j,q,K,Q,de=`External Content (XML)
6                            <small>Show data from external feed (Add feed url in CMS-&gt; Website
7                                Content-&gt; External Content)</small>`,ue,Y,oe;return l=new Se({}),m=new Ne({props:{path:o[0].url.pathname}}),g=new me({props:{slug:"investora_feed"}}),M=new me({props:{slug:"chartjson"}}),Y=new me({props:{slug:"test_xml_news",targetNode:"news"}}),{c(){t=p("meta"),r=p("meta"),e=I(),n=p("div"),z(l.$$.fragment),a=I(),z(m.$$.fragment),f=I(),i=p("div"),d=p("div"),s=p("div"),h=p("div"),v=p("section"),k=p("h2"),k.innerHTML=A,E=I(),z(g.$$.fragment),D=I(),x=p("div"),N=p("section"),C=p("h2"),C.innerHTML=P,F=I(),z(M.$$.fragment),j=I(),q=p("div"),K=p("section"),Q=p("h2"),Q.innerHTML=de,ue=I(),z(Y.$$.fragment),this.h()},l($){const R=Ie("svelte-1ydqzfi",document.head);t=_(R,"META",{content:!0,name:!0}),r=_(R,"META",{content:!0,name:!0}),R.forEach(u),e=T($),n=_($,"DIV",{class:!0});var O=b(n);X(l.$$.fragment,O),a=T(O),X(m.$$.fragment,O),f=T(O),i=_(O,"DIV",{class:!0});var _e=b(i);d=_(_e,"DIV",{class:!0});var pe=b(d);s=_(pe,"DIV",{class:!0});var Z=b(s);h=_(Z,"DIV",{class:!0});var he=b(h);v=_(he,"SECTION",{});var ae=b(v);k=_(ae,"H2",{class:!0,"data-svelte-h":!0}),ee(k)!=="svelte-1x0e33z"&&(k.innerHTML=A),E=T(ae),X(g.$$.fragment,ae),ae.forEach(u),he.forEach(u),D=T(Z),x=_(Z,"DIV",{class:!0});var ge=b(x);N=_(ge,"SECTION",{});var se=b(N);C=_(se,"H2",{class:!0,"data-svelte-h":!0}),ee(C)!=="svelte-v23xip"&&(C.innerHTML=P),F=T(se),X(M.$$.fragment,se),se.forEach(u),ge.forEach(u),j=T(Z),q=_(Z,"DIV",{class:!0});var $e=b(q);K=_($e,"SECTION",{});var ce=b(K);Q=_(ce,"H2",{class:!0,"data-svelte-h":!0}),ee(Q)!=="svelte-ggepau"&&(Q.innerHTML=de),ue=T(ce),X(Y.$$.fragment,ce),ce.forEach(u),$e.forEach(u),Z.forEach(u),pe.forEach(u),_e.forEach(u),O.forEach(u),this.h()},h(){document.title="External Content",w(t,"content","Examples External Content"),w(t,"name","description"),w(r,"content","index, follow"),w(r,"name","robots"),w(k,"class","mb-5"),w(h,"class","col col-sm-12"),w(C,"class","mb-5"),w(x,"class","col col-sm-6"),w(Q,"class","mb-5"),w(q,"class","col col-sm-6"),w(s,"class","row"),w(d,"class","container"),w(i,"class","page__content"),w(n,"class","page")},m($,R){c(document.head,t),c(document.head,r),y($,e,R),y($,n,R),V(l,n,null),c(n,a),V(m,n,null),c(n,f),c(n,i),c(i,d),c(d,s),c(s,h),c(h,v),c(v,k),c(v,E),V(g,v,null),c(s,D),c(s,x),c(x,N),c(N,C),c(N,F),V(M,N,null),c(s,j),c(s,q),c(q,K),c(K,Q),c(K,ue),V(Y,K,null),oe=!0},p($,[R]){const O={};R&1&&(O.path=$[0].url.pathname),m.$set(O)},i($){oe||(H(l.$$.fragment,$),H(m.$$.fragment,$),H(g.$$.fragment,$),H(M.$$.fragment,$),H(Y.$$.fragment,$),oe=!0)},o($){L(l.$$.fragment,$),L(m.$$.fragment,$),L(g.$$.fragment,$),L(M.$$.fragment,$),L(Y.$$.fragment,$),oe=!1},d($){$&&(u(e),u(n)),u(t),u(r),B(l),B(m),B(g),B(M),B(Y)}}}function mt(o,t,r){let e;return ne(o,Me,n=>r(0,e=n)),[e]}class Ct extends re{constructor(t){super(),le(this,t,mt,ut,te,{})}}export{Ct as component};

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.