Files
roi-theme/_planeacion/theme_referencias/_old/Estimating_files/fs-components.js.descarga
FrankZamora ea38a12055 [NIVEL 2 AVANCE] Issues #49-#53 - Componentes Principales Verificados
Todos los componentes del NIVEL 2 ya están implementados correctamente:
-  Notification Bar (#49)
-  Navbar (#50)
-  Hero Section (#51)
-  Sidebar (#52)
-  Footer (#53)

Solo se actualizó notification-bar.css para usar variables CSS.

Próximo paso: NIVEL 3 (Refinamientos visuales)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 20:01:07 -06:00

11 lines
14 KiB
Plaintext

import{a as se}from"./dist/chunk-ZG2A66SZ.js";import{a as p,b as re,c as J,d as ie}from"./dist/chunk-PVC7GHYA.js";import{a as ue}from"./dist/chunk-J7NTLVPZ.js";import{d as pe}from"./dist/chunk-FEFG7A4V.js";import{A as $,B as G,C as H,D as q,E as V,F as z,G as W,H as j,I as X,J as Y,K as Q,a as C,b as w,c as g,d as N,e as k,f as L,g as h,h as E,i as y,j as O,k as b,l as T,m as v,n as P,o as D,p as M,q as F,r as S,s as x,t as A,u as _,v as I,w as R,x as U,y as B,z as K}from"./dist/chunk-MQR56O56.js";import{a as ae,b as ce,c as Z,e as le}from"./dist/chunk-ITDLTPFP.js";import"./dist/chunk-5WLRVGM2.js";var me={[C]:{name:"Accordion",key:C,slug:"accordion",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[w]:{name:"Advanced Search",key:w,slug:"advanced-search",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[g]:{name:"Age Verification",key:g,slug:"age-verification",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[N]:{name:"Announcement",key:N,slug:"announcement",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[k]:{name:"Audio Player",key:k,slug:"audio-player",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[L]:{name:"Before and After Images",key:L,slug:"before-and-after-images",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[h]:{name:"Combo Box",key:h,slug:"combo-box",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[E]:{name:"Cookie Consent",key:E,slug:"cookie-consent",live:!0,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:"2024-01-01"},[y]:{name:"Countdown Timer",key:y,slug:"countdown-timer",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[O]:{name:"Cross Site Component",key:O,slug:"cross-site-component",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[b]:{name:"Cursor",key:b,slug:"cursor",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[T]:{name:"Date Picker",key:T,slug:"date-picker",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[v]:{name:"File Embed",key:v,slug:"file-embed",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[P]:{name:"File Upload",key:P,slug:"file-upload",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[D]:{name:"Google Maps",key:D,slug:"google-maps",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[M]:{name:"GSAP Builder",key:M,slug:"gsap-builder",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[F]:{name:"Instagram Feed",key:F,slug:"instagram-feed",live:!0,supportLinks:["docs","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:"2025-05-23"},[S]:{name:"Input Counter",key:S,slug:"input-counter",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[x]:{name:"Lightbox",key:x,slug:"lightbox",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[A]:{name:"LinkedIn Feed",key:A,slug:"linkedin-feed",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[_]:{name:"Marquee",key:_,slug:"marquee",live:!0,supportLinks:["docs","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:"2025-01-13"},[I]:{name:"Modal",key:I,slug:"modal",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[R]:{name:"Number Count",key:R,slug:"number-count",live:!0,supportLinks:["docs","feedback","tutorial","support"],componentNeedsLicense:!1,launchDate:"2025-01-28"},[U]:{name:"PDF Embed",key:U,slug:"pdf-embed",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[B]:{name:"Range Slider",key:B,slug:"range-slider",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[K]:{name:"Rich Text",key:K,slug:"rich-text",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[$]:{name:"Select",key:$,slug:"select",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[G]:{name:"Slider",key:G,slug:"slider",live:!0,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:"2024-01-01"},[H]:{name:"Social Share",key:H,slug:"social-share",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[q]:{name:"Star Rating",key:q,slug:"star-rating",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[V]:{name:"Table",key:V,slug:"table",live:!0,supportLinks:["feedback","tutorial","support"],componentNeedsLicense:!1,launchDate:"2025-01-17"},[z]:{name:"Auto Tabs",key:z,slug:"auto-tabs",live:!0,supportLinks:["docs","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:"2025-09-16"},[W]:{name:"Text",key:W,slug:"text",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[j]:{name:"Tooltip",key:j,slug:"tooltip",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[X]:{name:"Video Embed",key:X,slug:"video-embed",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""},[Y]:{name:"YouTube Feed",key:Y,slug:"youtube-feed",live:!0,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:"2025-08-23"},[Q]:{name:"Example",key:Q,slug:"example",live:!1,supportLinks:["docs","experts","feedback","tutorial","support"],componentNeedsLicense:!0,launchDate:""}};var de=ae({hash:"",url:typeof window<"u"?new URL(window.location.href):null});var fe=p("utils"),Ce=async(e,o,n="",s=!0)=>{if(!e)return[];let{origin:r}=window.location,t=ie.includes(r),a=async l=>{let u=new URL(re);u.searchParams.set("componentId",l),u.searchParams.set("siteId",e),t&&n&&u.searchParams.set("hostname",n);try{let m=await fetch(u.toString());return m.ok?(await m.json()).valid:(fe.error({},`Failed to fetch Finsweet Components license for [${l}].`,m.statusText),!1)}catch(m){return fe.error({},"Error fetching data:",m),!1}},c=o.map(async l=>{let{name:u="",componentNeedsLicense:m=!1}=me[l]||null;if(!m)return{app:l,licensed:!0,name:u};let ne=await a(l);return{app:l,licensed:ne,name:u}});return await Promise.all(c)};var d=p("components"),he=()=>new Promise(e=>{document.readyState==="complete"||document.readyState==="interactive"?e():document.addEventListener("DOMContentLoaded",()=>e(),{once:!0})}),Ee=async e=>(await he(),new Promise(o=>{let n=()=>{let s=document.querySelector(e);s?o(s):setTimeout(n,100)};n()})),ee=async(e,o)=>{if(o)try{d.warn({},"Finsweet Component is in preview mode. Configs will be fetched from the Component Configurator.");let r=await Ee(`[fs-${o}-previewmodeconfigs]`);if(!r)throw new Error(`Failed to initialize ${o} in preview mode. Ensure preview element contains [fs-${o}-previewmodeconfigs] attribute.`);let t=r?.getAttribute(`fs-${o}-previewmodeconfigs`)||"{}",a=r?.getAttribute(`fs-${o}-instance`);if(!a||!t)throw new Error(`Failed to initialize ${o} in preview mode. Ensure preview element contains [fs-${o}-instance] attribute.`);let c=se(t,o),f={[o]:{instances:{[a]:c}}};return d.log({context:"components"},`Preview mode: Initialising ${o} preview configs from [fs-${o}-previewmodeconfigs]:`,f),Z.set(!0),f}catch(r){return d.error({},"Error initializing Finsweet Component in preview mode",r),{}}if(!e)throw new Error("Failed to initialize Finsweet Component. No core script tag found.");let n=e?.getAttribute("fs-components-src");if(!n)throw new Error("Failed to initialize Finsweet Component. No fs-components-src attribute found on script tag.");if(n==="dev")return d.warn({},"You are currently in development mode. Configs will be fetched from the Component Configurator for preview mode."),{dev:!0};let s=await import(n);if(!e)throw new Error('No script tag found with type="module" and fs-components-src attribute');return Z.set(!1),s};var ye=p("components"),te=ue({fetched:!1,license:[]}),Oe=async(e,o,n)=>{let s=await le(o)||{};if(Object.keys(s).length>0){let{destroy:r=null}=e,{licensed:t=!1,name:a="this Component"}=n?.find(c=>c.app===o&&c.licensed)||{};!t&&r&&(ye.error({},`Finsweet Components - ${a} is not available for production use. Please purchase a plan at https://my.finsweet.com/plans/create/components.`),r())}};te.subscribe(e=>{let{license:o,fetched:n}=e;if(!n||!window?.fsComponents?.solutions)return;let{solutions:s}=window.fsComponents;Object.keys(s).forEach(t=>{let a=s[t];Oe(a,t,o)})});var we=async e=>{if(!window?.fsComponents||te.get().fetched)return;let{scripts:o=[]}=window.fsComponents;if(o.length===0)return;let n=document.documentElement.getAttribute("data-wf-site"),s=await Ce(n,e,"",!0);te.set({fetched:!0,license:s})};var i,ge=async(e,o)=>{let{scripts:n=[]}=window.fsComponents,[s=null]=n;if(document.querySelector('script[type="module"][fs-components-src="dev"]')?i=await ee(null,e):!i&&s&&(i=await ee(s)),!s)throw new Error('No script tag found with type="module" and fs-components-src attribute');switch(e){case"consent":{let t=document.querySelector('script[finsweet="consentpro"]');if(t&&t instanceof HTMLScriptElement)return console.info("Consent Pro script found, skipping init Cookie Consent Component using Finsweet Components"),null;let{init:a}=await import("./dist/src-CNIA4KOW.js");return a(i.consent)}case"slider":{let{init:t}=await import("./dist/src-X6236HDD.js");return t(i.slider)}case"marquee":{let{init:t}=await import("./dist/src-UBYRXYQD.js");return t(i.marquee)}case"tooltip":{let{init:t}=await import("./dist/src-FKIEKPTF.js");return t(i.tooltip)}case"cursor":{let{init:t}=await import("./dist/src-SYNMSHTK.js");return t(i.cursor)}case"cnumbercount":{let{init:t}=await import("./dist/src-CFX47IJ2.js");return t(i.cnumbercount)}case"rangeslider":{let{init:t}=await import("./dist/src-BGJWEFWU.js");return t(i.rangeslider)}case"socialshare":{let{init:t}=await import("./dist/src-VDSQM6C2.js");return t(i.socialshare)}case"tabs":{let{init:t}=await import("./dist/src-6VSAZ7UV.js");return t(i.tabs)}case"table":{let{init:t}=await import("./dist/src-H7DE6CCX.js");return t(i.table)}case"instagramfeed":{let{init:t}=await import("./dist/src-6COOXFZA.js");return t(i.instagramfeed)}case"youtubefeed":{let{init:t}=await import("./dist/src-LMTF64BR.js");return t(i.youtubefeed)}case"example":{let{init:t}=await import("./dist/src-VWPJUTQI.js");return t(i.example)}default:throw`Finsweet Component "${e}" is not supported.`}};var be=["webflow.io","webflow-ext.com","markup.io","fs-components-apps.pages.dev","canvas.webflow.com","server.wized.com"].filter(Boolean),Te=()=>{try{let e=ce(de);if(e&&e.hash)return!0;let n="";try{window.parent&&window.parent!==window&&window.parent.location&&(n=window.parent.location.href)}catch{pe()}if((window.location.protocol==="about:"||window.location.protocol.includes("srcdoc"))&&n.includes("finsweetlibrary"))return!0}catch{return!1}return!1},oe=()=>{let{hostname:e}=window.location;return Te()?!0:be.some(s=>e.includes(s))};var ke=p("components"),ve=()=>{if(!oe())return;let o=["font-size: 1.25rem","font-weight: bold","line-height: 1.3","font-family: Graphik web, sans-serif","color: #111","background: #51ffcb","padding: 0.75rem 1rem","border-radius: 0.25rem"].join(";"),n="https://finsweet.com/components";console.log(`
%c${J.FULL.PLURAL}`,o),console.log(`This site uses ${J.FULL.PLURAL}. Visit ${n} to learn more.
`)},Pe=()=>{ve();let{fsComponents:e}=window;if(e&&!Array.isArray(e)){Ne();return}let o=Array.isArray(e)?e:[],n=[],s=document.querySelector('script[type="module"][fs-components-src="dev"]');if(s)n=[s];else{let r=document.querySelectorAll(`script[type="module"][src="${import.meta.url}"]`);n=[...Array.from(r)]}window.fsComponents=window.FsComponents={scripts:n,solutions:{},process:new Set,load:Le,push(...r){for(let[t,a]of r)this.solutions[t]?.loading?.then(a)},destroy(){for(let r in this.solutions)this.solutions[r]?.destroy?.()}},Ne(),window.fsComponents.push(...o)},Ne=()=>{let[e]=window.fsComponents.scripts,n=(e?.getAttribute("fs-components-installed")||"")?.split(",");if(n.length===0){ke.error({},"No Finsweet Components installed in this project.");return}for(let r of n)Le(r);oe()||we(n)},Le=async e=>{if(window.fsComponents.process.has(e))return;window.fsComponents.process.add(e);let o=window.fsComponents.solutions[e]||={};o.loading=new Promise(n=>{o.resolve=s=>{n(s),delete o.resolve}});try{let n=await ge(e);if(!n)return;let{init:s,version:r}=n,t=await s();if(!t)return;let{result:a,destroy:c}=t;return o.version=r,o.destroy=()=>{c?.(),window.fsComponents.process.delete(e)},o.restart=()=>(o.destroy?.(),window.fsComponents.load(e)),o.resolve?.(a),a}catch(n){ke.error({},"Error initializing Finsweet Components scripts",n)}};Pe();