PageSourceSearch

https://storyblok-assets-ng.mindvalley.com/_nuxt/B8C0d1Vp.js

js mindvalley.com collected 2026-09-24 08:24:16 UTC 2,215 bytes, 1 lines download raw bytes

1import{i as I,u as z,g as $}from"./B4ByCXdA.js";import{f as V,a as w}from"./UWToDBcR.js";import{y as B,k as N,l as P,ai as v,A as a,Z as d,a4 as m,ak as h,ag as S,D as n,aq as j,_ as i}from"./D0rPpKiU.js";import{H as D}from"#entry";import"./DSqrqKx1.js";import"./D_gTWDL9.js";const H=["href"],L=["href"],A=["href"],M=B({inheritAttrs:!1,__name:"IconPicker",props:{blok:{}},setup(c){const o=c,{ensureIconLoaded:x,isIconLoaded:k}=z(),r=n(()=>{if(!o.blok)return null;const e=o.blok.options?.icon||o.blok.icon;return!e||typeof e!="string"?null:e.trim()||null}),u=n(()=>r.value?$(r.value):null),l=n(()=>!r.value||!I(r.value)?null:`#${r.value}`);async function g(){const e=r.value,t=u.value;!e||!t||k(e)||await x(e,t)}N(()=>{g()}),P([r,u],()=>{r.value&&u.value&&!k(r.value)&&g()});function y(e){if(e==null)return null;if(typeof e=="number"&&!isNaN(e))return`${e}px`;if(typeof e=="string"){const t=e.trim();if(/^\d+$/.test(t))return`${t}px`;if(/^\d*\.?\d+(px|rem|em|vh|vw|%)$/.test(t))return t;const s={xs:"14px",sm:"16px",md:"20px",lg:"24px",xl:"32px"};if(t in s)return s[t]}return null}const f=n(()=>{const e={},t=o.blok.options?.size??o.blok.size,s=y(t);return s&&(e.width=s,e.height=s),e}),p=n(()=>{const e=o.blok.options?.color??o.blok.color;return V(e,"text-current")}),_=n(()=>o.blok.bg_shape==="circle"),C=n(()=>o.blok.bg_shape==="hexagon"),b=n(()=>w(o.blok.bg_color));return(e,t)=>{const s=j("editable");return l.value&&_.value?v((i(),a("div",{key:0,class:h(["rounded-full flex items-center justify-center py-3.5 px-2.5",b.value]),role:"presentation"},[(i(),a("svg",d(e.$attrs,{style:f.value,class:["fill-current",p.value]}),[m("use",{href:l.value},null,8,H)],16))],2)),[[s,c.blok]]):l.value&&C.value?v((i(),a("div",{key:1,class:h(["hexagon-clip flex items-center justify-center py-3.5 px-2.5",b.value]),role:"presentation"},[(i(),a("svg",d(e.$attrs,{style:f.value,class:["fill-current",p.value]}),[m("use",{href:l.value},null,8,L)],16))],2)),[[s,c.blok]]):l.value?v((i(),a("svg",d({key:2},e.$attrs,{style:f.value,class:["fill-current",p.value]}),[m("use",{href:l.value},null,8,A)],16)),[[s,c.blok]]):S("",!0)}}}),F=Object.assign(D(M,[["__scopeId","data-v-e07006ec"]]),{__name:"IconPicker"});export{F as default};

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.