PageSourceSearch

https://colorize.design/_nuxt/nvmTF8EG.js

js colorize.design collected 2026-10-02 00:36:03 UTC 13,292 bytes, 5 lines download raw bytes

1import{a$ as V,aV as W,aY as G,aF as E,aJ as K,aE as j,aM as X,aG as x,aI as q,aH as Y,bW as z,b4 as J,bh as Q,bD as I,aS as Z,bB as $,aX as ee,aL as g,aU as te,c3 as ne,bl as re,aQ as oe,bC as ae}from"./BG-N6m6B.js";import{_ as le}from"./D0Q_LJJy.js";import{_ as ie}from"./DhTbjJlp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a2768e4d-cdea-44ee-886c-e76177b96f4c",e._sentryDebugIdIdentifier="sentry-dbid-a2768e4d-cdea-44ee-886c-e76177b96f4c")}catch{}})();const ue={key:0,class:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black/5"},se={class:"flex items-center gap-4 py-2.5 pl-4 pr-2.5"},ce={class:"min-w-0 flex-1 text-sm font-medium text-gray-900"},Ke={__name:"Notification",props:{showNotification:Boolean,message:{type:String,default:"Notification Text"},autoHideDuration:{type:Number,default:3e3}},emits:["update:showNotification"],setup(e,{emit:t}){const n=e,o=t;function a(){o("update:showNotification",!1)}let r=null;return V([()=>n.showNotification,()=>n.message],([l])=>{r&&clearTimeout(r),l&&(r=setTimeout(()=>{r=null,a()},n.autoHideDuration))}),W(()=>{r&&clearTimeout(r)}),(l,i)=>(E(),G(z,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:K(()=>[e.showNotification?(E(),j("div",ue,[x("div",se,[x("p",ce,Y(e.message),1),q(le,{tone:"light",onClick:a})])])):X("",!0)]),_:1}))}},de={},fe={"aria-live":"assertive",class:"pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:items-start sm:p-6"},me={class:"flex w-full flex-col items-center space-y-4 sm:items-end"};function pe(e,t){return E(),j("div",fe,[x("div",me,[J(e.$slots,"default")])])}const Xe=ie(de,[["render",pe]]);var S;let ve=Symbol("headlessui.useid"),he=0;const qe=(S=Q)!=null?S:function(){return I(ve,()=>`${++he}`)()};function h(e){var t;if(e==null||e.value==null)return null;let n=(t=e.value.$el)!=null?t:e.value;return n instanceof Node?n:null}function D(e,t,...n){if(e in t){let a=t[e];return typeof a=="function"?a(...n):a}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,D),o}var ge=Object.defineProperty,we=(e,t,n)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t,n)=>(we(e,typeof t!="symbol"?t+"":t,n),n);let be=class{constructor(){_(this,"current",this.detect()),_(this,"currentId",0)}set(t){this.current!==t&&(this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}},F=new be;function L(e){if(F.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=h(e);if(t)return t.ownerDocument}return document}let N=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ye=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(ye||{}),Ee=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ee||{}),xe=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(xe||{});function k(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(N)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var M=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(M||{});function C(e,t=0){var n;return e===((n=L(e))==null?void 0:n.body)?!1:D(t,{0(){return e.matches(N)},1(){let o=e;for(;o!==null;){if(o.matches(N))return!0;o=o.parentElement}return!1}})}function ze(e){let t=L(e);Z(()=>{t&&!C(t.activeElement,0)&&$e(e)})}var Ne=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ne||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function $e(e){e==null||e.focus({preventScroll:!0})}let De=["textarea","input"].join(",");function Fe(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,De))!=null?n:!1}function Se(e,t=n=>n){return e.slice().sort((n,o)=>{let a=t(n),r=t(o);if(a===null||r===null)return 0;let l=a.compareDocumentPosition(r);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Je(e,t){return _e(k(),t,{relativeTo:e})}function _e(e,t,{sorted:n=!0,relativeTo:o=null,skipElements:a=[]}={}){var r;let l=(r=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?r:document,i=Array.isArray(e)?n?Se(e):e:k(e);a.length>0&&i.length>1&&(i=i.filter(c=>!a.includes(c))),o=o??l.activeElement;let p=(()=>
1{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,i.indexOf(o))-1;if(t&4)return Math.max(0,i.indexOf(o))+1;if(t&8)return i.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=t&32?{preventScroll:!0}:{},m=0,v=i.length,f;do{if(m>=v||m+v<=0)return 0;let c=u+m;if(t&16)c=(c+v)%v;else{if(c<0)return 3;if(c>=v)return 1}f=i[c],f==null||f.focus(s),m+=p}while(f!==l.activeElement);return t&6&&Fe(f)&&f.select(),2}function Oe(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ae(){return/Android/gi.test(window.navigator.userAgent)}function Te(){return Oe()||Ae()}function w(e,t,n){F.isServer||$(o=>{document.addEventListener(e,t,n),o(()=>document.removeEventListener(e,t,n))})}function Pe(e,t,n){F.isServer||$(o=>{window.addEventListener(e,t,n),o(()=>window.removeEventListener(e,t,n))})}function Qe(e,t,n=ee(()=>!0)){function o(r,l){if(!n.value||r.defaultPrevented)return;let i=l(r);if(i===null||!i.getRootNode().contains(i))return;let p=function u(s){return typeof s=="function"?u(s()):Array.isArray(s)||s instanceof Set?s:[s]}(e);for(let u of p){if(u===null)continue;let s=u instanceof HTMLElement?u:h(u);if(s!=null&&s.contains(i)||r.composed&&r.composedPath().includes(s))return}return!C(i,M.Loose)&&i.tabIndex!==-1&&r.preventDefault(),t(r,i)}let a=g(null);w("pointerdown",r=>{var l,i;n.value&&(a.value=((i=(l=r.composedPath)==null?void 0:l.call(r))==null?void 0:i[0])||r.target)},!0),w("mousedown",r=>{var l,i;n.value&&(a.value=((i=(l=r.composedPath)==null?void 0:l.call(r))==null?void 0:i[0])||r.target)},!0),w("click",r=>{Te()||a.value&&(o(r,()=>a.value),a.value=null)},!0),w("touchend",r=>o(r,()=>r.target instanceof HTMLElement?r.target:null),!0),Pe("blur",r=>o(r,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function O(e,t){if(e)return e;let n=t??"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Ze(e,t){let n=g(O(e.value.type,e.value.as));return te(()=>{n.value=O(e.value.type,e.value.as)}),$(()=>{var o;n.value||h(t)&&h(t)instanceof HTMLButtonElement&&!((o=h(t))!=null&&o.hasAttribute("type"))&&(n.value="button")}),n}function A(e){return[e.screenX,e.screenY]}function et(){let e=g([-1,-1]);return{wasMoved(t){let n=A(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=A(t)}}}var je=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(je||{}),Ie=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Ie||{});function tt({visible:e=!0,features:t=0,ourProps:n,theirProps:o,...a}){var r;let l=B(o,n),i=Object.assign(a,{props:l});if(e||t&2&&l.static)return y(i);if(t&1){let p=(r=l.unmount)==null||r?0:1;return D(p,{0(){return null},1(){return y({...a,props:{...l,hidden:!0,style:{display:"none"}}})}})}return y(i)}function y({props:e,attrs:t,slots:n,slot:o,name:a}){var r,l;let{as:i,...p}=Le(e,["unmount","static"]),u=(r=n.default)==null?void 0:r.call(n,o),s={};if(o){let m=!1,v=[];for(let[f,c]of Object.entries(o))typeof c=="boolean"&&(m=!0),c===!0&&v.push(f);m&&(s["data-headlessui-state"]=v.join(" "))}if(i==="template"){if(u=H(u??[]),Object.keys(p).length>0||Object.keys(t).length>0){let[m,...v]=u??[];if(!ke(m)||v.length>0)throw new Error(['Passing props on "template"!',"",`The current component <${a} /> is rendering a "template".`,"However we need to passthrough the following props:",Object.keys(p).concat(Object.keys(t)).map(d=>d.trim()).filter((d,b,R)=>R.indexOf(d)===b).sort((d,b)=>d.localeCompare(b)).map(d=>`  - ${d}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>`  - ${d}`).join(`
3`)].join(`
4`));let f=B((l=m.props)!=null?l:{},p,s),c=ne(m,f,!0);for(let d in f)d.startsWith("on")&&(c.props||(c.props={}),c.props[d]=f[d]);return c}return Array.isArray(u)&&u.length===1?u[0]:u}return re(i,Object.assign({},p,s),{default:()=>u})}function H(e){return e.flatMap(t=>t.type===oe?H(t.children):[t])}function B(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let o of e)for(let a in o)a.startsWith("on")&&typeof o[a]=="function"?(n[a]!=null||(n[a]=[]),n[a].push(o[a])):t[a]=o[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(t,{[o](a,...r){let l=n[o];for(let i of l){if(a instanceof Event&&a.defaultPrevented)return;i(a,...r)}}});return t}function nt(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Le(e,t=[]){let n=Object.assign({},e);for(let o of t)o in n&&delete n[o];return n}function ke(e){return e==null?!1:typeof e.type=="string"||typeof e.type=="object"||typeof e.type=="function"}let U=Symbol("Context");var Me=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Me||{});function rt(){return Ce()!==null}function Ce(){return I(U,null)}function ot(e){ae(U,e)}
4var He=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(He||{});function Be(e){throw new Error("Unexpected object: "+e)}var Ue=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Ue||{});function at(e,t){let n=t.resolveItems();if(n.length<=0)return null;let o=t.resolveActiveIndex(),a=o??-1;switch(e.focus){case 0:{for(let r=0;r<n.length;++r)if(!t.resolveDisabled(n[r],r,n))return r;return o}case 1:{a===-1&&(a=n.length);for(let r=a-1;r>=0;--r)if(!t.resolveDisabled(n[r],r,n))return r;return o}case 2:{for(let r=a+1;r<n.length;++r)if(!t.resolveDisabled(n[r],r,n))return r;return o}case 3:{for(let r=n.length-1;r>=0;--r)if(!t.resolveDisabled(n[r],r,n))return r;return o}case 4:{for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return o}case 5:return null;default:Be(e)}}let T=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function P(e){var t,n;let o=(t=e.innerText)!=null?t:"",a=e.cloneNode(!0);if(!(a instanceof HTMLElement))return o;let r=!1;for(let i of a.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))i.remove(),r=!0;let l=r?(n=a.innerText)!=null?n:"":o;return T.test(l)&&(l=l.replace(T,"")),l}function Re(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let o=n.split(" ").map(a=>{let r=document.getElementById(a);if(r){let l=r.getAttribute("aria-label");return typeof l=="string"?l.trim():P(r).trim()}return null}).filter(Boolean);if(o.length>0)return o.join(", ")}return P(e).trim()}function lt(e){let t=g(""),n=g("");return()=>{let o=h(e);if(!o)return"";let a=o.innerText;if(t.value===a)return n.value;let r=Re(o).trim().toLowerCase();return t.value=a,n.value=r,r}}export{tt as A,nt as E,ye as N,Se as O,_e as P,$e as S,Xe as T,Ke as _,Ee as a,qe as b,F as c,Me as d,Qe as e,je as f,He as g,Ie as h,L as i,ot as j,Le as k,Ce as l,Ze as m,et as n,h as o,lt as p,C as q,M as r,rt as s,Oe as t,D as u,at as v,Pe as w,Ue as x,Je as y,ze as z};
5//# sourceMappingURL=nvmTF8EG.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.