PageSourceSearch

https://hi.is/themes/custom/volcano/dist/design-system/components/qz-image-text.js?v=2.0.0-beta.6

js hi.is collected 2026-09-24 08:41:06 UTC 9,244 bytes, 53 lines download raw bytes

1(()=>{"use strict";(self.webpackChunk_dxp_quartz=self.webpackChunk_dxp_quartz||[]).push([[285],{4030:function(t,e,i){i.d(e,{w:function(){return s}});var o,n=i(7220);const r=new CSSStyleSheet,a=null!==(o=window.quartzBaseStylesPath)&&void 0!==o?o:"quartz.css";fetch(a).then((t=>t.text())).then((t=>{r.replaceSync(t)})).catch((t=>console.error("Gat ekki hlaðið Quartz stílum:",t)));class s extends n.oi{static get baseStyles(){return n.dy``}static get styles(){return[]}connectedCallback(){super.connectedCallback(),this.shadowRoot&&this.shadowRoot.adoptedStyleSheets&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,r])}render(){return n.dy`<slot></slot>`}}},5328:function(t,e,i){var o=i(7220),n=i(5471),r=i(9407),a=i(4030),s=i(8019),l=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(a=(r<3?n(a):r>3?n(e,i,a):n(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a};let d=class extends a.w{constructor(){super(...arguments),this.withButton=!1,this.titleH1=!1,this._buttonTemplate=t=>{var e,i;let n=!1,a=!1,s="blue",l=!1,d=!1,b="blue",m=!1,p=!1;return"outline"===this.buttonStyle&&(n=!0),"text"===this.buttonStyle&&(a=!0),"pink"===this.buttonColor&&(s="pink"),"outline"===this.buttonStyle2&&(l=!0),"text"===this.buttonStyle2&&(d=!0),"pink"===this.buttonColor2&&(b="pink"),(null===(e=this.buttonHref)||void 0===e?void 0:e.startsWith("https://"))&&(m=!0),(null===(i=this.buttonHref2)||void 0===i?void 0:i.startsWith("https://"))&&(p=!0),this.buttonHref2?t?o.dy`
2          <div class="image-text__button two_buttons">
3            <qz-button
4              color=${s}
5              href=${(0,r.o)(this.buttonHref)}
6              iconafter="arrow_forward"
7              label=${(0,r.o)(this.buttonTitle)}
8              ?outline=${n}
9              ?text=${a}
10              ?external=${m}
11            ></qz-button>
12            <qz-button
13              color=${b}
14              href=${(0,r.o)(this.buttonHref2)}
15              iconafter="arrow_forward"
16              label=${(0,r.o)(this.buttonTitle2)}
17              ?outline=${l}
18              ?text=${d}
19              ?external2=${p}
20            ></qz-button>
21          </div>`:o.dy``:t?o.dy`
22          <div class="image-text__button">
23            <qz-button
24              color=${s}
25              href=${(0,r.o)(this.buttonHref)}
26              iconafter="arrow_forward"
27              label=${(0,r.o)(this.buttonTitle)}
28              ?outline=${n}
29              ?text=${a}
30              ?external=${m}
31            ></qz-button>
32          </div>`:o.dy``},this._titleTemplate=t=>t&&this.imageTextTitle?t?o.dy` <h1>${this.imageTextTitle}</h1> `:o.dy``:this.imageTextTitle?o.dy` <h2>${this.imageTextTitle}</h2> `:o.dy``}static get styles(){return[o.iv`
33        ${(0,o.$m)(":host{display:block}:host([not_theme_light]){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.image-text{position:relative}.image-text:focus{--tw-border-opacity:1;border-bottom-width:4px;border-color:rgb(191 18 93/var(--tw-border-opacity));border-top-width:4px}@media (min-width:1024px){.image-text{display:-webkit-box;display:-ms-flexbox;display:flex}}.image-text__content{-webkit-box-orient:vertical;-webkit-box-direction:normal;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media (min-width:0px){.image-text__content{margin-bottom:2rem;padding:1.5rem}}@media (min-width:1024px){.image-text__content{margin-bottom:0;padding-bottom:2.5rem;padding-left:4rem;padding-right:0;padding-top:2.5rem;width:50%}}.image-text__content a:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(191 18 93/var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-ring-offset-color:#fcfcfc;-webkit-box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-sha
33dow,0 0 #0000);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.image-text__media{display:-webkit-box;display:-ms-flexbox;display:flex;min-height:100%}@media (min-width:768px){.image-text__media{overflow:hidden}}@media (min-width:1024px){.image-text__media{width:50%}:host([image-align=right]) .image-text__content{padding-right:5rem}:host([image-align=right]) .image-text__content{padding-left:0}:host([image-align=right]) .image-text__media{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.image-text__button.two_buttons{display:-webkit-box;display:-ms-flexbox;display:flex}@media (min-width:0px){.image-text__button.two_buttons{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column;gap:1rem}}@media (min-width:1200px){.image-text__button.two_buttons{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;-ms-flex-direction:row;flex-direction:row;gap:2rem}}@media (min-width:0px){:host([variant=slide5050]) .image-text__content{padding:1rem}:host([variant=slide5050]) .image-text__content{padding-top:2.5rem}}@media (min-width:1024px){:host([variant=slide5050]) .image-text__content{padding:2.5rem}}slot[name=kicker]{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity));display:block;font-size:1rem;line-height:1.5rem;text-transform:uppercase}:host([variant=slide5050]) .image-text__button.two_buttons{display:-webkit-box;display:-ms-flexbox;display:flex}@media (min-width:0px){:host([variant=slide5050]) .image-text__button.two_buttons{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}:host([variant=slide5050]) .image-text__button.two_buttons{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}:host([variant=slide5050]) .image-text__button.two_buttons{gap:1rem}}@media (min-width:1200px){:host([variant=slide5050]) .image-text__button.two_buttons{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}:host([variant=slide5050]) .image-text__button.two_buttons{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}:host([variant=slide5050]) .image-text__button.two_buttons{gap:2rem}}.subheading{margin-bottom:.5rem}h1,h2{font-family:Atkinson Hyperlegible,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1.75rem;font-weight:700;line-height:2.1rem}@media (min-width:1024px){h1,h2{font-size:2.5rem;line-height:3rem}}h1,h2{padding-bottom:1rem!important;padding-top:1rem!important}:host([unpublished]){--tw-bg-opacity:1;background-color:rgb(253 242 248/var(--tw-bg-opacity))}@media (min-width:0px){:host(.children) .image-text__content{padding-top:4rem}}")}
34      `]}render(){return this.imageText&&(console.log(this.imageText.includes("<img")),console.log(this.imageText.includes("media--view-mode-ckeditor"))),o.dy`
35      ${a.w.baseStyles}
36      <div class="image-text">
37        <div class="image-text__media">
38          <slot name="media"></slot>
39        </div>
40        <div class="image-text__content">
41          <slot name="kicker">${this.kicker}</slot>
42          <small class="preheading">
43            ${this.preHeader}
44          </small>
45          ${this._titleTemplate(this.titleH1)}
46          <div slot="subheading" class="subheading">
47            <h7>${this.subHeader}</h7>
48          </div>
49          ${(0,s.A)(this.imageText)}
50          ${this._buttonTemplate(this.withButton)}
51        </div>
52      </div>
53    `}};l([(0,n.Cb)({type:String,attribute:"image-align"})],d.prototype,"imageAlign",void 0),l([(0,n.Cb)({type:String})],d.prototype,"image",void 0),l([(0,n.Cb)({type:String})],d.prototype,"imageSet",void 0),l([(0,n.Cb)({type:String})],d.prototype,"imageTextTitle",void 0),l([(0,n.Cb)({type:String})],d.prototype,"preHeader",void 0),l([(0,n.Cb)({type:String})],d.prototype,"subHeader",void 0),l([(0,n.Cb)({type:String})],d.prototype,"kicker",void 0),l([(0,n.Cb)({type:String})],d.prototype,"imageText",void 0),l([(0,n.Cb)({type:Boolean,attribute:"with-button"})],d.prototype,"withButton",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonTitle",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonHref",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonTitle2",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonHref2",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonStyle",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonColor",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonStyle2",void 0),l([(0,n.Cb)({type:String})],d.prototype,"buttonColor2",void 0),l([(0,n.Cb)({type:Boolean,attribute:"titleh1"})],d.prototype,"titleH1",void 0),l([(0,n.Cb)({type:String})],d.prototype,"unpublished",void 0),d=l([(0,n.Mo)("qz-image-text")],d)}},function(t){t.O(0,[736],(function(){return t(t.s=5328)}
53)),t.O()}])})();

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.