PageSourceSearch

https://timesheetgenerator-production.up.railway.app/static/js/index.BVQ-x0jB.js

js timesheetgenerator-production.up.railway.app collected 2026-10-03 12:15:25 UTC 13,469 bytes, 2 lines download raw bytes

1import{H as _,r as u,Q as ao,ct as L,ck as co,W as io,g as lo,j as b,R as I,O as fo,cu as go,x as D,X as H}from"./index.3bHSf9gi.js";function Co(o,e,r,t){for(var n=-1,s=o==null?0:o.length;++n<s;)r=e(r,o[n],n,o);return r}function xo(o){return function(e){return o?.[e]}}var po={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",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xff",zo="\\xac\\xb1\\xd7\\xf7",Lo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mo="\\u2000-\\u206f",Wo=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",G="A-Z\\xc0-\\xd6\\xd8-\\xde",jo="\\ufe0e\\ufe0f",Y=zo+Lo+Mo+Wo,q="['’]",M="["+Y+"]",$o="["+Oo+"]",K="\\d+",No="["+J+"]",X="["+Z+"]",Q="[^"+V+Y+K+J+Z+G+"]",Po="\\ud83c[\\udffb-\\udfff]",_o="(?:"+$o+"|"+Po+")",Do="[^"+V+"]",oo="(?:\\ud83c[\\udde6-\\uddff]){2}",eo="[\\ud800-\\udbff][\\udc00-\\udfff]",w="["+G+"]",Ho="\\u200d",W="(?:"+X+"|"+Q+")",Vo="(?:"+w+"|"+Q+")",j="(?:"+q+"(?:d|ll|m|re|s|t|ve))?",$="(?:"+q+"(?:D|LL|M|RE|S|T|VE))?",ro=_o+"?",to="["+jo+"]?",Jo="(?:"+Ho+"(?:"+[Do,oo,eo].join("|")+")"+to+ro+")*",Zo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Go="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yo=to+ro+Jo,qo="(?:"+[No,oo,eo].join("|")+")"+Yo,Ko=RegExp([w+"?"+X+"+"+j+"(?="+[M,w,"$"].join("|")+")",Vo+"+"+$+"(?="+[M,w+W,"$"].join("|")+")",w+"?"+W+"+"+j,w+"+"+$,Go,Zo,K,qo].join("|"),"g");function Xo(o){return o.match(Ko)||[]}function Qo(o,e,r){return o=_(o),e=e,e===void 0?To(o)?Xo(o):Bo(o):o.match(e)||[]}var oe="['’]",ee=RegExp(oe,"g");function re(o){return function(e){return Co(Qo(wo(e).replace(ee,"")),o,"")}}var te=re(function(o,e,r){return o+(r?"-":"")+e.toLowerCase()});const B=u.createContext(null);B.displayName="BidiComponentContext";const k=ao.getLogger("BidiComponent"),N="__",A="__streamlit_arrow_ref__",ne="$$STREAMLIT_INTERNAL_KEY",se=(o,e)=>{if(o&&typeof o=="object"&&!Array.isArray(o)){if(typeof o[A]=="string"){const t=o[A],n=e[t];if(n)try{return L(n)}catch{return null}return null}const r={};for(const[t,n]of Object.entries(o))if(n&&typeof n=="object"&&!Array.isArray(n)&&typeof n[A]=="string"){const s=n[A],a=e[s];if(a)try{r[t]=L(a)}catch{r[t]=null}else r[t]=null}else r[t]=n;return r}return o},ue=({arrowBlobs:o,arrowData:e,bytes:r,data:t,json:n,mixedJson:s})=>{switch(t){case"json":return n?JSON.parse(n):null;case"arrowData":return e??null;case"bytes":return r??null;case"mixed":{if(s&&o&&s){const a=JSON.parse(s),i={};return o&&Object.entries(o).forEach(([d,l])=>{l?.data&&(i[d]=l.data)}),se(a,i)}return null}case"any":case void 0:return null;default:co(t)}},ae=(o,e="--st")=>{const r={};return Object.entries(o).forEach(([t,n])=>{const s=te(t),a=`${e}-${s}`;if(typeof n=="boolean"){r[a]=n?"1":"0";return}r[a]=String(n)}),r},ce=o=>({primaryColor:o.colors.primary,backgroundColor:o.colors.bgColor,secondaryBackgroundColor:o.colors.secondaryBg,textColor:o.colors.bodyText,linkColor:o.colors.link,linkUnderline:o.linkUnderline,headingFont:o.genericFonts.headingFont,codeFont:o.genericFonts.codeFont,baseRadius:o.radii.default,buttonRadius:o.radii.button,baseFontSize:typeof o.fontSizes.baseFontSize=="number"?`${o.fontSizes.baseFontSize}px`:String(o.fontSizes.baseFontSize),baseFontWeight:o.fontWeights.normal,codeFontWeight:o.fontWeights.code,codeFontSize:o.fontSizes.codeFontSize,headingFontSizes:[o.fontSizes.h1FontSize,o.fontSizes.h2FontSize,o.fontSizes.h3FontSize,o.fontSizes.h4FontSize,o.fontSizes.h5FontSize,o.fontSizes.h6FontSize],headingFontWeights:[o.fontWeights.h1FontWeight,o.fontWeights.h2FontWeight,o.fontWeights.h3FontWeight,o.fontWeights.h4FontWeight,o.fontWeights.h5FontWeight,o.fontWeights.h6FontWeight],borderColor:o.colors.borderColor,dataframeBorderColor:o.colors.dataframeBorderColor,dataframeHeaderBackgroundColor:o.colors.dataframeHeaderBackgroundColor,codeBackgroundColor:o.colors.codeBackgroun
1dColor,font:o.genericFonts.bodyFont,chartCategoricalColors:o.colors.chartCategoricalColors,chartSequentialColors:o.colors.chartSequentialColors,headingColor:o.colors.headingColor,borderColorLight:o.colors.borderColorLight,codeTextColor:o.colors.codeTextColor,widgetBorderColor:o.colors.widgetBorderColor,redColor:o.colors.redColor,orangeColor:o.colors.orangeColor,yellowColor:o.colors.yellowColor,blueColor:o.colors.blueColor,greenColor:o.colors.greenColor,violetColor:o.colors.violetColor,grayColor:o.colors.grayColor,redBackgroundColor:o.colors.redBackgroundColor,orangeBackgroundColor:o.colors.orangeBackgroundColor,yellowBackgroundColor:o.colors.yellowBackgroundColor,blueBackgroundColor:o.colors.blueBackgroundColor,greenBackgroundColor:o.colors.greenBackgroundColor,violetBackgroundColor:o.colors.violetBackgroundColor,grayBackgroundColor:o.colors.grayBackgroundColor,redTextColor:o.colors.redTextColor,orangeTextColor:o.colors.orangeTextColor,yellowTextColor:o.colors.yellowTextColor,blueTextColor:o.colors.blueTextColor,greenTextColor:o.colors.greenTextColor,violetTextColor:o.colors.violetTextColor,grayTextColor:o.colors.grayTextColor}),ie=u.memo(({element:o,children:e,widgetMgr:r,fragmentId:t,componentRegistry:n})=>{const{arrowData:s,bytes:a,componentName:i,cssContent:d,cssSourcePath:l,data:f,htmlContent:g,id:c,jsContent:h,json:p,jsSourcePath:m,mixed:C}=o,y=u.useMemo(()=>({id:o.id,formId:o.formId}),[o.id,o.formId]),F=u.useCallback(()=>{const v=r.getJsonValue(y);if(!v)return{};try{return JSON.parse(v)}catch(O){const S=io(O);return k.warn("Failed to parse widget JSON value; returning empty object.",{widgetId:y.id,formId:y.formId,error:S.message}),{}}},[y,r]),T=u.useMemo(()=>ue({arrowBlobs:C?.arrowBlobs||void 0,arrowData:s?.data||void 0,bytes:a,data:f,json:p,mixedJson:C?.json||void 0}),[f,p,s?.data,a,C?.json,C?.arrowBlobs]),R=lo(),E=u.useMemo(()=>ce(R),[R]),x=u.useMemo(()=>({componentName:i,componentRegistry:n,cssContent:d?.trim(),cssSourcePath:l||void 0,data:T,fragmentId:t,getW
1idgetValue:F,htmlContent:g?.trim(),id:c,formId:o.formId||void 0,jsContent:h||void 0,jsSourcePath:m||void 0,theme:E,widgetMgr:r}),[i,n,d,l,t,F,g,c,o.formId,h,m,T,E,r]);return b(B.Provider,{value:x,children:e})}),no=(o,e)=>{if(o instanceof Error)return o;const r=e?`${e}: ${String(o)}`:String(o);return new Error(r)},U=(o,e,r)=>{const t=no(o,r);k.error(`BidiComponent Error: ${t.message}`,o),e(t)},le=(o,e)=>{try{const t=document.createRange().createContextualFragment(o);e.appendChild(t)}catch(r){k.warn("createContextualFragment failed, falling back to innerHTML",r),e.innerHTML=o}},so=({containerRef:o,setError:e,skip:r=!1})=>{const t=u.useRef(null),{htmlContent:n,cssContent:s,cssSourcePath:a,componentName:i,componentRegistry:{getBidiComponentURL:d}}=I(B),l=u.useMemo(()=>{if(a)return d(i,a)},[i,a,d]),f=fo(l);return u.useEffect(()=>{if(r)return;const g=o.current;if(g)try{if(t.current?.parentNode===g&&g.removeChild(t.current),t.current=document.createElement("div"),n){const c=document.createElement("div");le(n,c),t.current.appendChild(c)}if(s){const c=document.createElement("style");c.textContent=s,t.current.appendChild(c)}else if(l){const c=document.createElement("link");c.href=l,c.rel="stylesheet",f&&(c.crossOrigin=f),c.onerror=()=>{U(new Error(`Failed to load CSS from ${l}`),e)},t.current.appendChild(c)}g.appendChild(t.current)}catch(c){U(c,e,"Failed to process HTML/CSS content")}},[n,s,o,f,l,e,r]),t};class de{constructor(){this.hashSeed=2166136261,this.hashPrime=16777619,this.cache=new Map}computeHash(e){let r=this.hashSeed;for(let t=0;t<e.length;t++)r^=e.charCodeAt(t),r=Math.imul(r>>>0,this.hashPrime)>>>0;return(r>>>0).toString(16)}getOrCreateUrlForJs(e,r){const t=this.computeHash(e),n=this.cache.get(t);if(n)return{url:n,hash:t};const s=`${e}
2//# sourceURL=${r}-${t}.js`,a=new Blob([s],{type:"text/javascript"}),i=URL.createObjectURL(a);return this.cache.set(t,i),{url:i,hash:t}}}const fe=new de,ge="events";function Ce(o){if(o.includes(N))throw new Error("Base component id must not contain the delimiter sequence");return`${ne}_${o}${N}${ge}`}const P=async({componentId:o,componentIdForWidgetMgr:e,componentName:r,data:t,formId:n,fragmentId:s,getWidgetValue:a,moduleUrl:i,parentElement:d,widgetMgr:l})=>{const f=await import(i);if(!f)throw new Error("JS module does not exist.");if(!f.default||typeof f.default!="function")throw new Error("JS module does not have a default export function.");const g=(h,p)=>{let m={};try{m={...a(),[h]:p}}catch(C){k.error(`Failed to get existing value for ${h}`,C),m={[h]:p}}l.setJsonValue({id:e,formId:n},m,{fromUi:!0},s)},c=(h,p)=>{if(n){k.warn("BidiComponent: setTriggerValue ignored inside st.form. Triggers are not allowed in forms; use setStateValue and form submit instead.");return}const m=Ce(e);l.setTriggerValue({id:m,formId:n},{fromUi:!0},s,{event:h,value:p})};return f.default({name:r,data:t,key:o,parentElement:d,setStateValue:g,setTriggerValue:c})},uo=({containerRef:o,setError:e,skip:r=!1})=>{const n=`st-bidi-component-${u.useMemo(()=>go(),[])}`,{componentName:s,data:a,formId:i,fragmentId:d,getWidgetValue:l,id:f,jsContent:g,jsSourcePath:c,theme:h,widgetMgr:p,componentRegistry:{getBidiComponentURL:m}}=I(B),C=u.useMemo(()=>{if(c)return m(s,c)},[s,c,m]),y=u.useRef(),F=u.useRef(),T=u.useRef(!1);u.useEffect(()=>{const{current:R}=o;if(r||!g&&!C||!R)return;(async()=>{try{if(g){const{url:x}=fe.getOrCreateUrlForJs(g,`st-bidi-${s}`);y.current=await P({componentId:n,componentIdForWidgetMgr:f,componentName:s,data:a,formId:i,fragmentId:d,getWidgetValue:l,moduleUrl:x,parentElement:R,widgetMgr:p})}else if(C){const x=C;try{await new Promise((v,O)=>{const S=document.createElement("script");S.type="module",S.src=x,S.async=!0,S.onload=()=>v(),S.onerror=()=>O(new Error(`Failed to load script from ${C}`)),document.head.appendChild(S),F.current=S}),y.current=await P({componentId:n,componentIdForWidgetMgr:f,componentName:s,data:a,formId:i,fragmentId:d,getWidgetValue:l,moduleUrl:x,parentElement:R,widgetMgr:p})}catch(v){throw no(v,`Failed to load or execute script from ${C}`)}}}catch(x){T.current||U(x,e)}})()},[n,s,o,a,i,d,l,f,g,C,e,r,p,h]),u.useEffect(()=>()=>{T.current=!0;const R=y.current;R&&Promise.resolve(R).then(x=>{x?.()}).catch(x=>{k.error("Failed to run custom component cleanup",x)});const E=F.current;E?.parentNode&&E.parentNode.removeChild(E)},[])},xe=D("div",{target:"e10xsstg0"})(({cssCustomProperties:o})=>({...o,display:"contents"})),z=D("div",{target:"e10xsstg1"})({width:"100%",height:"100%"}),pe=u.memo(()=>{const o=u.useRef(null),e=u.useRef(null),[r,t]=u.useState(!1),[n,s]=u.useState(null),{id:a}=I(B);u.useEffect(()=>{if(o.current)try{if(o.current.shadowRoot){e.current=o.current.shadowRoot,t(!0);return}e.current=o.current.attachShadow({mode:"open"}),t(!0)}catch(d){U(d,s,"Failed to create shadow DOM")}},[a]);const i=!r||!!n;return so({containerRef:e,setError:s,skip:i}),uo({containerRef:e,setError:s,skip:i}),n?b(H,{name:"BidiComponent Error",message:n.message,stack:n.stack}):b(z,{ref:o,"data-testid":"stBidiComponentIsolated"})}),me=u.memo(()=>{const o=u.useRef(null),[e,r]=u.useState(null),t=!!e;return so({containerRef:o,setError:r,skip:t}),uo({containerRef:o,setError:r,skip:t}),e?b(H,{name:"BidiComponent Error",message:e.message,stack:e.stack}):b(z,{ref:o,"data-testid":"stBidiComponentRegular"})}),be=({children:o})=>{const{theme:e}=I(B),r=u.useMemo(()=>ae(e),[e]);return b(xe,{cssCustomProperties:r,children:o})},he=({element:o,widgetMgr:e,fragmentId:r,componentRegistry:t})=>{const{isolateStyles:n}=o;return b(ie,{element:o,widgetMgr:e,fragmentId:r,componentRegistry:t,children:b(z,{className:"stBidiComponent",children:b(be,{children:n?b(pe,{}):b(me,{})})})})},Se=u.memo(he);export{B as BidiComponentContext,Se 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.