PageSourceSearch

https://www.power.se/frontend/dist/browser/chunk-CCGI34LC.js

js power.se collected 2026-09-26 01:23:51 UTC 5,690 bytes, 5 lines download raw bytes

1import{c as L,d as Y}from"./chunk-M5U7TBQY.js";import{a as k,b as K,c as X}from"./chunk-M66LVL6E.js";import{a as ee}from"./chunk-6ED7CXXN.js";import{a as M}from"./chunk-4U7ZBIWP.js";import{y as V,z as Q}from"./chunk-O574CAJ5.js";import{R as W,y as G}from"./chunk-II62XKAX.js";import{Ka as q,ba as R}from"./chunk-Q2U6QXMH.js";import{Ec as A,Gc as u,H as I,Jb as g,Kd as r,Rd as n,Sc as v,Tc as j,Uc as y,Vc as E,Xc as B,de as P,e as D,ec as N,gc as c,ia as J,ic as d,nc as m,ob as z,oc as _,pc as T,pd as U,qc as p,qd as F,rc as x,sa as C,sc as O,tb as a,yd as h,zd as f}from"./chunk-AAE36BVF.js";import{d as b}from"./chunk-YZFYTRZT.js";function Z(e){return e===M.TrainedAlgorithmicMedia||e===M.CompositeSynthetic}var $,H=b(()=>{"use strict";W();ee();P();$=(()=>{class e{static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=g({type:e,selectors:[["pwr-ai-image-disclosure"]],decls:3,vars:3,consts:[["role","note",1,"disclosure","pwr-body-4","power-primary-500-fg"]],template:function(o,i){o&1&&(x(0,"div",0),E(1),h(2,"transloco"),O()),o&2&&(a(),B(" ",f(2,1,"Product.Image.AiDisclosure"),`
2`))},dependencies:[G],styles:[`[_nghost-%COMP%]   .disclosure[_ngcontent-%COMP%]{display:inline-block;padding:4px 8px;border-radius:6px;background-color:color-mix(in srgb,var(--power-primary-100) 80%,transparent)}
3/*# sourceMappingURL=ai-image-disclosure.component-ORZ65ZKR.css.map */`],changeDetection:0})}}return e})()});function ne(e,s){if(e&1&&p(0,"source",1),e&2){let t=u();m("srcset",s)("sizes",t.sizes())}}function re(e,s){if(e&1&&p(0,"source",2),e&2){let t=u();m("srcset",s)("sizes",t.sizes())}}function se(e,s){if(e&1&&p(0,"source",3),e&2){let t=u();m("srcset",s)("sizes",t.sizes())}}function ae(e,s){e&1&&p(0,"pwr-ai-image-disclosure")}var te,oe,Pe,ce=b(()=>{q();P();J();Q();X();H();Y();P();te=e=>({"product-image-container":e}),oe=(e,s)=>({"max-height":e,"max-width":s});Pe=(()=>{class e{constructor(){this.imageParser=C(k),this.configuration=C(V),this.renderEmptyImage=n(),this.productImageNew=n(),this.sizes=n("300px"),this.productTitle=n(),this.alt=n(),this.imageClass=n(""),this.forceSize=n(),this.reserveSize=n(!0),this.fillContainer=n(!1),this.priority=n(!1),this.showAiDisclosure=n(!1),this.inputParams=r(()=>{let t=this.productImageNew();return t?this.imageParser.parseProductImage(t):this.imageParser.parseProductImage()}),this.srcSetStr=r(()=>this.inputParams()[0]),this.defaultImageUrl=r(()=>this.inputParams()[1]??(this.renderEmptyImage()&&L)),this.customSrcSets=r(()=>this.inputParams()[2]??new K),this.defaultSize={height:300,width:300},this.size=r(()=>this.inputParams()[3]??this.defaultSize),this.altText=r(()=>{let t=this.alt();return t!==void 0?t.trim():this.inputParams()[4]?.trim()||this.productTitle()?.trim()||""}),this.titleText=r(()=>{let t=this.altText(),o=this.productTitle()?.trim();return!t||!o||o===t?null:o}),this.aiDisclosureVisible=r(()=>this.showAiDisclosure()&&this.configuration.appSettings.aiImageDisclosureEnabled&&Z(this.productImageNew()?.aiImageSource)),this.loadingSubject=new D(!0),this.loading$=this.loadingSubject.pipe(I(10))}loaded(){this.loadingSubject.next(!1)}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=g({type:e,selectors:[["pwr-product-image"]],hostVars:2,hostBindings:function(o,i){o&2&&v("pwr-product-image--fill",i.fillContainer())},inputs:{renderEmptyImage:[1,"renderEmptyImage"],productImageNew:[1,"productImageNew"],sizes:[1,"sizes"],productTitle:[1,"productTitle"],alt:[1,"alt"],imageClass:[1,"imageClass"],forceSize:[1,"forceSize"],reserveSize:[1,"reserveSize"],fillContainer:[1,"fillContainer"],priority:[1,"priority"],showAiDisclosure:[1,"showAiDisclosure"]},decls:8,vars:26,consts:[["fxFlex",""],["type","image/webp",3,"srcset","sizes"],["type","image/jpeg",3,"srcset","sizes"],[3,"srcset","sizes"],[1,"w-100-p","h-100-p",3,"load","error","width","height","src"]],template:function(o,i){if(o&1&&(_(0,"div")(1,"picture",0),c(2,ne,1,2,"source",1),c(3,re,1,2,"source",2),c(4,se,1,2,"source",3),_(5,"img",4),h(6,"async"),A("load",function(){return i.loaded()})("error",function(){return i.loaded()}),T()()(),c(7,ae,1,0,"pwr-ai-image-disclosure")),o&2){let l,S,w;y(U(21,te,i.reserveSize())),a(2),d((l=i.customSrcSets().webp)?2:-1,l),a(),d((S=i.customSrcSets().jpg)?3:-1,S),a(),d((w=i.srcSetStr())?4:-1,w),a(),j(F(23,oe,i.forceSize(),i.forceSize())),y(i.imageClass()),v("loading",f(6,19,i.loading$)),m("width",i.size().width)("height",i.size().height)("src",i.defaultImageUrl(),z),N("loading",i.priority()?"eager":"lazy")("fetchpriority",i.priority()?"high":"auto")("alt",i.altText())("title",i.titleText()),a(2),d(i.aiDisclosureVisible()?7:-1)}},dependencies:[$,R],styles:[`[_nghost-%COMP%]{position:relative}
3pwr-ai-image-disclosure[_ngcontent-%COMP%]{position:absolute;right:0;bottom:0;z-index:1}.product-image-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;position:relative;height:0;padding-bottom:100%}.product-image-container[_ngcontent-%COMP%]   .img[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}img[_ngcontent-%COMP%]{opacity:1;transition:opacity .3s linear;object-fit:contain}img.loading[_ngcontent-%COMP%]{opacity:0}.pwr-product-image--fill[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;height:100%}.pwr-product-image--fill[_nghost-%COMP%]   picture[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.pwr-product-image--fill[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%}
4/*# sourceMappingURL=product-image.component-7P4BKJ7O.css.map */`],changeDetection:0})}}return e})()});export{Pe as a,ce as b};
5//# sourceMappingURL=chunk-CCGI34LC.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.