PageSourceSearch

https://form.sie.ch/s/portal/f250cf5b6ef/static/js/modal-TableProduct.18365f35.js

js sie.ch collected 2026-09-26 05:08:08 UTC 8,894 bytes, 87 lines download raw bytes

1"use strict";(("u"<typeof self?this:self).portalchunkList=("u"<typeof self?this:self).portalchunkList||[]).push([[7395],{70448:function(e,t,r){r.r(t),r.d(t,{default:function(){return T}});var a=r(76188),i=r(67344),l=r(32819),n=r(6875),o=r(2729),s=r(4409),d=r(94680),u=r(11624),p=r(98596),h=r(26900),m=r(26449);let c={list:(0,m.AH)`
2    width: min(max(49.5rem, var(--table-modal-width, 49.5rem)), 110.5rem, 94vw) !important;
3    height: min(max(31.5rem, var(--table-modal-height, 31.5rem)), 40.5rem, 90vh) !important;
4    max-height: min(40.5rem, 90vh) !important;
5  `,addColumn:(0,m.AH)`
6    width: min(var(--table-modal-width, 48rem), 94vw) !important;
7    height: min(var(--table-modal-height, 25rem), 90vh) !important;
8    max-height: min(var(--table-modal-height, 25rem), 90vh) !important;
9  `},g={list:(0,m.AH)`
10    height: clamp(482px, var(--table-modal-height, 482px), 95vh) !important;
11    max-height: 95vh !important;
12  `,addColumn:(0,m.AH)`
13    height: min(var(--table-modal-height, 400px), 95vh) !important;
14    max-height: min(var(--table-modal-height, 400px), 95vh) !important;
15  `,addColumnType:(0,m.AH)`
16    height: min(920px, 95vh) !important;
17    max-height: min(920px, 95vh) !important;
18  `},w=(0,m.Ay)(p.a)`
19    max-width: none !important;
20    transition: width 0.2s ease, height 0.2s ease;
21    ${({$stage:e})=>"list"===e?c.list:c.addColumn}
22
23    @media screen and (max-width: 768px) {
24        width: 100% !important;
25        ${({$stage:e})=>g[e]||g.list}
26    }
27`,f=(0,m.Ay)(h.c)`
28    padding: 0 !important;
29    border-radius: 0.5rem;
30    display: flex !important;
31    flex-direction: column;
32    flex: 1 1 auto !important;
33    flex-grow: 1 !important;
34    min-height: 0;
35    iframe {
36        width: 100%;
37        height: 100%;
38        border: 0;
39    }
40
41    @media screen and (min-width: 769px) {
42        .jNewHeader-titleWrapper {
43            top: 50%;
44            transform: translate(-50%, -50%);
45            max-width: calc(100% - 120px);
46            width: max-content;
47        }
48
49        .jNewHeader-title {
50            max-width: 100%;
51            overflow: hidden;
52            white-space: nowrap;
53            text-overflow: ellipsis;
54        }
55
56        .jNewHeader-revisionDate {
57            display: block;
58            max-width: 100%;
59            overflow: hidden;
60            white-space: nowrap;
61            text-overflow: ellipsis;
62        }
63    }
64
65    .jNewHeader-revisionDate .jNewHeader-titleLink {
66        color: #7BB60F;
67    }
68`,v=m.Ay.div`
69    width: 100%;
70    height: 8px;
71    background-color: #049E38;
72`;var y=r(8913),b=r.n(y),x=r(44565),A=r(44852);let j="portal-data",L="[data-table-product-body]",D=()=>{var e;let t=document.querySelector(`${L} iframe`);null==t||null==(e=t.contentWindow)||e.postMessage({source:j,type:"grid-rerender"},"*")},N=({resourceID:e="",viewID:t,onClose:r,updatedAt:o=null,ResourceTitle:p,tablesRendererProps:h={},unmount:m=!0,open:c=!0})=>{let g=(0,n.d4)(u.A.getAppID),y=((e,t)=>{if(!e)return"";let r=b().tz(e,"YYYY-MM-DD HH:mm:ss","America/New_York");if(t&&(r=r.tz(t)),!r.isValid())return"";switch(b()(new Date,"YYYY-MM-DD").diff(r.format("YYYY-MM-DD"),"days")){case 0:let a=r.format("LT");return(0,x.t)("Last updated at {date}").replace("{date}",a);case 1:return`${(0,x.t)("Last updated")} ${(0,x.t)("yesterday")}`;default:let i=r.format("DD MMM YYYY LT");return(0,x.t)("Last updated at {date}").replace("{date}",i)}})(o,(0,n.d4)(u.A.getUserTimezone)),N=(0,n.d4)(u.A.getIsDataFeatureEnabled),T=(e=>{let[t,r]=(0,l.useState)("list"),[a,i]=(0,l.useState)(null),[n,o]=(0,l.useState)(null),[s,d]=(0,l.useState)(!1);return(0,A.B)({allowedOrigins:[window.location.origin],onRaw:({data:t})=>{if(e&&(null==t?void 0:t.source)===j)switch(t.type){case"create-column-open":r("addColumnType");break;case"create-column-close":r("list"),i(null);break;case"create-column-resize":"number"==typeof t.height&&(r("type"===t.step?"addColumnType":"addColumn"),i({width:t.width,height:t.height}));break;case"list-resize":"number"==typeof t.height&&"number"==typeof t.width&&o(e=>e&&e.width===t.width&&e.height===t.height?e:{width:t.width,height:t.height});break;case"cell-edit-open":d(!0);break;case"cell-edit-close":d(!1)}}}),(0,l.useEffect)(()=>
72{if(!e){r("list"),i(null),o(null),d(!1);return}},[e]),(0,l.useEffect)(()=>{if(!e||s)return;((e,t,r)=>{var a;let i,l,n,o=null==(a=document.querySelector(L))?void 0:a.parentElement;if(!o)return;let s="list"===e?r:t;if(!s)return;let d="list"===e?s.height+(i=0,(l=o.querySelector(".jNewHeader"))&&(i+=l.offsetHeight),(n=o.querySelector(".tableProductModalAccent"))&&(i+=n.offsetHeight),i):s.height;o.style.setProperty("--table-modal-width",`${s.width}px`),o.style.setProperty("--table-modal-height",`${d}px`)})(t,a,n);let r=requestAnimationFrame(D);return()=>cancelAnimationFrame(r)},[t,e,a,n,s]),t})(c);return(0,a.jsx)(w,{open:c,onClose:r,unmount:m,$stage:T,children:(0,a.jsxs)(f,{"data-table-product-body":!0,children:["list"===T&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"jNewHeader",children:[(0,a.jsxs)("div",{className:"jNewHeader-col jNewHeader-titleWrapper alignCenter",children:[(0,a.jsx)(p,{}),y&&(0,a.jsx)("span",{className:"jNewHeader-revisionDate","data-testid":"jNewHeader-revisionDate",children:(0,a.jsx)("span",{className:"jNewHeader-titleLink",children:(0,a.jsx)("span",{children:y})})})]}),(0,a.jsx)("div",{className:"absolute right-5 align-center",style:{alignSelf:"center"},children:(0,a.jsx)(i.$,{startIcon:s.A,colorStyle:"secondary",rounded:!0,"aria-label":"Close Button",onClick:r,className:"ml-auto"})})]}),N&&(0,a.jsx)(v,{className:"tableProductModalAccent","aria-hidden":"true"})]}),(0,a.jsx)(d.A,{forModal:!0,appID:g,productID:`${e}${t?`/${t}`:""}`,...h})]})})};N.propTypes={resourceID:o.string,viewID:o.string,onClose:o.func,updatedAt:o.string,ResourceTitle:o.elementType,tablesRendererProps:o.object,unmount:o.bool,open:o.bool};var T=N},57523:function(e,t,r){var a=r(76188),i=r(2729),l=r(32819),n=r(61800),o=r(26449),s=r(61276);let d=o.Ay.iframe`
73  display: block;
74  opacity: ${({loaded:e})=>+!!e};
75  transition: 0.3s opacity ease;
76`,u=(0,o.Ay)(s.R)`
77  position: absolute;
78  top: 50%;
79  left: 50%;
80  transform: translate(-50%, -50%);
81`,p=o.Ay.div`
82  position: relative;
83  height: 100%;
84  overflow-y: auto;
85  flex: 1;
86  background-color: ${({$useOwnFormStyles:e})=>e?"transparent":"var(--bg-surface)"};
87`,h=(0,l.forwardRef)(({reloadKey:e,pageURL:t,title:r,LoaderRenderer:i,onLoad:o,scrolling:s,useOwnFormStyles:u=!1,...h},m)=>{let[c,g]=(0,l.useState)(!1),[w,f]=(0,l.useState)(!1),v=(0,l.useRef)(!1),y=(0,l.useCallback)(e=>{g(!0),o(e),v.current&&!w&&f(!0),v.current=!0},[v]);return n.NX(()=>g(!1),[e]),(0,a.jsxs)(p,{$useOwnFormStyles:u,children:[!c&&(0,a.jsx)(i,{}),(0,a.jsx)(d,{ref:m,title:r,src:t,loaded:c,onLoad:y,allowtransparency:"true",allowFullScreen:!0,allow:"geolocation; microphone; camera",scrolling:w?"auto":s,...h},e)]})});h.propTypes={reloadKey:i.number,pageURL:i.string,title:i.string,LoaderRenderer:i.elementType,onLoad:i.func,scrolling:i.string,useOwnFormStyles:i.bool},h.defaultProps={reloadKey:0,pageURL:"",title:"",LoaderRenderer:u,onLoad:e=>e,scrolling:"auto",useOwnFormStyles:!1},t.A=(0,l.memo)(h)},94680:function(e,t,r){r.d(t,{A:function(){return f}});var a=r(76188),i=r(2729),l=r(32819),n=r(6875),o=r(44852),s=r(57523),d=r(20559),u=r(20265),p=r(11624),h=r(76048),m=r(10824),c=r(89852);let g={"no-no":"nb","pt-br":"pt-br","sr-ba":"sr-cyrl","zh-cn":"zh-cn","zh-hk":"zh-hk"},w=({appID:e,productID:t,viewID:r,urlProps:i,onContentResize:w,...f})=>{let v=(0,l.useRef)(null),[y,b]=(0,l.useState)(0),x=(0,n.d4)(p.A.getCurrentLanguage),A=(0,n.d4)(p.A.getAppThemeMode),j=(0,h.F)({withOverrides:!0}),L=(e=>{if(!e)return null;let t=e.toLowerCase();return g[t]||t.split("-")[0]})(x),{additionalQueries:D={},...N}=i,T="1"===D.portalTheme,H=(0,d.z0)({appID:e,id:[t,r].filter(Boolean).join("/"),type:u.Ce.TABLES,...N,additionalQueries:{...D,...L?{lang:L}:{}}}),S=(0,l.useMemo)(()=>new URL(H).origin,[H]),M=(0,l.useMemo)(()=>Object.fromEntries(Object.entries((0,c.p$)({baseScale:m.Qo.rQ(j["--app-primary"]),neutralScale:m.Qo.Ci,appThemeMode:"light",appTheme:j["--app-primary"]})).map(([e,t])=>[e,j[`${e}-override`]||j[e]||t])),[j]),{send:E}=(0,o.B)({allowedOrigins:[S],allowedSources:()=>{var e;
87return[null==(e=v.current)?void 0:e.contentWindow].filter(Boolean)},on:{PORTAL_TABLE_THEME_READY:()=>b(e=>e+1),INLINE_TABLE_RESIZE:e=>{var t;let r=Number(null==e||null==(t=e.payload)?void 0:t.height);Number.isFinite(r)&&r>0&&w(Math.ceil(r))}}});return(0,l.useEffect)(()=>{var e;T&&0!==y&&E(null==(e=v.current)?void 0:e.contentWindow,{type:"PORTAL_TABLE_THEME_UPDATE",payload:{mode:A,tokens:M}},S)},[A,T,S,y,M,E]),(0,a.jsx)(s.A,{ref:v,pageURL:H,...f})};w.propTypes={appID:i.string,productID:i.string,viewID:i.string,forModal:i.bool,urlProps:i.object,onContentResize:i.func},w.defaultProps={appID:"",viewID:"",urlProps:{},onContentResize:e=>e};var f=w}}]);

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.