PageSourceSearch

https://theoceancleanupstore.com/assets/TmlColorInput.38cba8c9.js

js theoceancleanupstore.com collected 2026-10-07 04:18:29 UTC 4,303 bytes, 2 lines download raw bytes

1import{d as N,r as c,w,aw as O,ax as L,ao as M,D as b,E as A,f as v,u as B,U as E,$ as H,a7 as R,V as q}from"./vue.e6b86939.js";import z from"./TmlInput.686bbc5b.js";import{b7 as j,_ as V}from"./index.909ae9e7.js";import $ from"./TmlColorPicker.21a6b4cf.js";import"./faCheck.4c02719e.js";import"./faTimes.f46e97f5.js";import"./faPlus.86397d01.js";import"./faMinus.771234d1.js";import"./faArrowRight.4b5e7a83.js";import"./faUndo.0bd38eef.js";import"./sentry.09480738.js";import"./tinycolor.1e305f4d.js";import"./debounce.27fcd800.js";const g=e=>{let a=e;a=a.replace(/[^a-fA-F0-9]/g,"");const n=a.length;return[3,4,6,8].some((i,t,o)=>n<i&&!o.includes(n)?(a=[a,...new Array(i-n).fill("0")].join(""),!0):!1),a=a.toUpperCase(),`#${a}`};var h={},p={},P;function x(){return P||(P=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var a="fal",n="droplet-slash",i=640,t=512,o=["tint-slash"],r="f5c7",u="M633.9 483.4C640.9 488.9 642 498.1 636.6 505.9C631.1 512.9 621 514 614.1 508.6L6.086 28.56C-.8493 23.08-2.033 13.02 3.443 6.086C8.918-.8493 18.98-2.033 25.91 3.443L633.9 483.4zM423.1 419.6L449.2 439.5C417 474.3 371.1 496 319.1 496C222.8 496 143.1 417.2 143.1 319.1C143.1 294.7 155.9 259.8 173.6 221.1L199.4 242.4C196.2 249.6 193.2 256.6 190.5 263.4C180.6 288.5 175.1 307.6 175.1 319.1C175.1 399.5 240.5 464 319.1 464C360.9 464 397.8 446.1 423.1 419.6V419.6zM345.1 19.3C392.2 87.35 489.1 236.7 495.7 313.2L456.3 282C454.4 276.2 452.1 270 449.5 263.4C439.8 238.9 426.2 211.6 410.8 183.7C380.4 128.8 344.1 74.13 319.1 39.32C304.1 62.26 282.1 93.84 261.7 128.4L236.4 108.4C257.1 73.52 279.3 41.92 294.9 19.3C307.2 1.585 332.8 1.585 345.1 19.3L345.1 19.3zM319.1 400C328.8 400 336 407.2 336 416C336 424.8 328.8 432 319.1 432C258.1 432 207.1 381.9 207.1 319.1C207.1 311.2 215.2 303.1 223.1 303.1C232.8 303.1 239.1 311.2 239.1 319.1C239.1 364.2 275.8 400 319.1 400z";e.definition={prefix:a,iconName:n,icon:[i,t,o,r,u]},e.faDropletSlash=e.definition,e.prefix=a,e.iconName=n,e.width=i,e.height=t,e.ligatures=o,e.unicode=r,e.svgPathData=u,e.aliases=o}(p)),p}var k;function U(){return k||(k=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var a=x();e.definition={prefix:a.prefix,iconName:a.iconName,icon:[a.width,a.height,a.aliases,a.unicode,a.svgPathData]},e.faTintSlash=e.definition,e.prefix=a.prefix,e.iconName=a.iconName,e.width=a.width,e.height=a.height,e.ligatures=a.aliases,e.unicode=a.unicode,e.svgPathData=a.svgPathData,e.aliases=a.aliases}(h)),h}var G=U();const J={class:"tml-color-input relative"},K=N({__name:"TmlColorInput",props:{name:null,placeholder:null,validationRules:null,value:{default:j},showOpacitySelector:{type:Boolean,default:!1},showClearOption:{type:Boolean,default:!1},colorAfterCleared:{default:"#0000"}},emits:["input","new-input"],setup(e,{emit:a}){const n=e,i=c(n.value),t=c(n.value);w(t,()=>i.value=t.value),w(()=>n.value,l=>{t.value=l});const o=c(null),r=c(null),u=c(!1),I=O({target:r}).pressed;function S(){u.value=!0,m()}function y(){u.value=!1}function T(l){u.value||(t.value=l,a("input",l),a("new-input",l))}function C(l,s){if(!l||I.value||(i.value=l,!r.value))return;const f=r.value.validateColor;!f(l,"hex")||(t.value=l,a(s,g(l||"#fff")))}const d=c(!1);function m(){d.value=!0}function _(){d.value=!1}const{isOutside:D}=L(o);function F(){!u.value&&!d.value||(i.value=g(i.value||"#fff"),_())}return M(r,()=>{D.value&&F()}),(l,s)=>(b(),A("div",J,[v(z,{ref_key:"hexInputField",ref:o,class:"!m-0",type:"text",placeholder:e.placeholder,"field-name":e.name,"validation-rules":e.validationRules,"colour-preview":t.value,value:i.value,"show-clear":e.showClearOption,"value-after-cleared":e.colorAfterCleared,"clear-icon":B(G.faTintSlash),onInput:s[0]||(s[0]=f=>C(f,"input")),onNewInput:s[1]||(s[1]=f=>C(f,"new-input")),onSelectedColour:m,onFocus:S,onBlur:y},null,8,["placeholder","field-name","validation-rules","colour-preview","value","show-clear","value-after-cleared","clear-icon"]),v(q,{name:"fade"},{default:E(()=>[H(v($,{ref_key:"colorPicker",ref:r,class:"picker absolute","default-color":t.value,"show-alpha":e.showOpacitySelector,"show-hex-field":!1,onInput:T},null,8,["default-color","show-alpha"]),[[R,d.value]])]),_:1})]))}});const ue=V(K,[["__scopeId","data-v-df0cb753"]]);export{ue as default};
2//# sourceMappingURL=TmlColorInput.38cba8c9.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.