🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 08:54:56 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
reenrihair.com
/
wp-content
/
plugins
/
google-site-kit
/
dist
/
assets
/
js
📍 /home/therahul/reenrihair.com/wp-content/plugins/google-site-kit/dist/assets/js
🔄 Refresh
✏️
Editing: googlesitekit-vendor-lazy-pdf-493be76d9808fe3e830c.js
Writable
(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[102],{17040(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>k});var a=r(9397),n=r(63696),o=r(50539),l=r(33855),i=r(29785),s=r(97345),c=r(4169),u=r(4124),g=r(13047),d=r(51169),f=r(82871),m=r(97015);const p=a.vv.create({page:{paddingTop:24,paddingBottom:24,paddingHorizontal:24,fontSize:12,backgroundColor:"#f3f5f7"},header:{marginBottom:32},headerSiteName:{fontSize:20,fontWeight:700,marginBottom:4},headerDateRange:{fontSize:11,color:"#5f6368"},body:{flexGrow:1},section:{marginBottom:24},sectionTitle:{fontSize:24,fontWeight:"normal",color:"#161b18",marginBottom:12},emptyText:{fontSize:11,color:"#5f6368"},footer:{borderTopWidth:1,borderTopColor:"#dadce0",paddingTop:12,fontSize:9,color:"#5f6368"}}),h=({siteName:e,dateRange:t,userName:r,generatedAt:n,pageHeight:o=792,areas:l=[]})=>{const i=r?(0,f.sprintf)(/* translators: 1: Date and time string. 2: User name. */ /* translators: 1: Date and time string. 2: User name. */ (0,f.__)("Generated %1$s by %2$s","google-site-kit"),n,r):(0,f.sprintf)(/* translators: %s: Date and time string. */ /* translators: %s: Date and time string. */ (0,f.__)("Generated %s","google-site-kit"),n);return m.createElement(a.yo,{title:(0,f.__)("Site Kit Dashboard Report","google-site-kit"),author:"Site Kit by Google"},m.createElement(a.YW,{size:[612,o],style:p.page,wrap:!1},m.createElement(a.Ss,{style:p.header},m.createElement(a.EY,{style:p.headerSiteName},e),t?m.createElement(a.EY,{style:p.headerDateRange},t):null),m.createElement(a.Ss,{style:p.body},0===l.length&&m.createElement(a.EY,{style:p.emptyText},(0,f.__)("No report data available.","google-site-kit")),l.map(({areaSlug:e,areaTitle:t,widgets:r})=>m.createElement(a.Ss,{key:`section-${e}`,style:p.section},m.createElement(a.EY,{style:p.sectionTitle},t),r.map(({slug:e,Component:t,data:r,chartImages:n})=>t?m.createElement(t,{key:e,data:r,chartImages:n}):m.createElement(a.EY,{key:e,style:p.emptyText},(0,f.__)("Data unavailable.","google-site-kit")))))),m.createElement(a.Ss,{style:p.footer},m.createElement(a.EY,null,i))))};var b=r(97015);const E="IDLE",S="LOADING",y="BUILDING",v="COMPLETE",T="ERROR",R={[E]:[S],[S]:[y,T,E],[y]:[v,T,E],[v]:[],[T]:[]};function w(e){return!!e.pdf}const D={stage:E};function A(e,t){if("TRANSITION"===t.type){return R[e.stage].includes(t.nextStage)?{stage:t.nextStage}:e}return e}function x(e){return e instanceof DOMException&&"AbortError"===e.name}function N(e){if(e.aborted)throw new DOMException("Aborted","AbortError")}const k=({onComplete:e})=>{const[,t]=(0,n.useReducer)(A,D),r=(0,o.useRegistry)(),{setStatus:f,setProgress:m,setBlob:p,clearExport:R,clearCancelRequest:k}=(0,o.useDispatch)(l.v),I=(0,u.A)(),_=(0,o.useSelect)(e=>e(l.v).isCancelRequested(),[]),C=(0,o.useSelect)(e=>e(i.O4).getSiteName(),[]),z=(0,o.useSelect)(e=>e(i.O4).getReferenceSiteURL(),[]),L=(0,o.useSelect)(e=>e(s.oR).getDateRange(),[]),O=(0,o.useSelect)(e=>e(s.oR).getName(),[]),Y=(0,o.useSelect)(e=>e(l.v).getSelectedContextSlugs(),[]),B=(0,o.useSelect)(e=>e(s.oR).getDateRangeDates({compare:!0,referenceDate:(0,g.IS)(e(s.oR).getReferenceDate(),1)}),[]),M=(0,o.useSelect)(e=>I?e(s.oR).getViewableModules():void 0,[I]),W=(0,n.useRef)(null),P=(0,n.useRef)(null),F=(0,n.useRef)(null),G=(0,n.useRef)(null),$=(0,n.useRef)(!1),U=(0,n.useRef)(e);(0,n.useEffect)(()=>{U.current=e},[e]);const V=(0,n.useCallback)(()=>{null!==P.current&&(clearTimeout(P.current),P.current=null)},[]),j=(0,n.useCallback)(e=>{V(),P.current=setTimeout(()=>{P.current=null,$.current=!0,W.current?.abort()},e)},[V]);return(0,n.useEffect)(()=>{_&&(W.current?.abort(),k())},[_,k]),(0,n.useEffect)(()=>{const e=new AbortController;W.current=e;const{signal:n}=e;function o(e){e.preventDefault(),e.returnValue=""}globalThis.addEventListener("beforeunload",o);const l="string"==typeof C&&C.length>0?C:z||"";return async function(){try{t({type:"TRANSITION",nextStage:S}),f("progress"),m(0),j(45e3),await function(e){return new Promise((t,r)=>{if(e.aborted)return void r(new DOMException("Aborted","AbortError"));function a(){globalThis.cancelAnimationFrame(n),r(new DOMException("Aborted","AbortError"))}const n=globalThis.requestAnimationFrame(()=>{e.removeEventListener("abort",a),t()});e.addEventListener("abort",a,{once:!0})})}(n);const e=r.select(c.aO),o=[];Y.forEach(t=>{e.getWidgetAreas(t).forEach(t=>{const r=e.getWidgets(t.slug,{modules:M||void 0}).filter(w);0!==r.length&&o.push({areaSlug:t.slug,areaTitle:t.pdfTitle||t.title||"",widgets:r})})});const i=o.flatMap(e=>e.widgets);if(0===i.length)throw new Error("No PDF-capable widgets to export.");const s=new Map;let u=0;for(let e=0;e<i.length;e++){const t=i[e];try{let e=t.pdf.Component;if("function"==typeof e.preload){const t=await e.preload();N(n),e=t.default}const a=await t.pdf.getData({registry:r,dates:B,signal:n});N(n),s.set(t.slug,{Component:e,data:a?.data??null,chartImages:a?.chartImages})}catch(e){if(x(e))throw e;u++,s.set(t.slug,{Component:null,data:null,chartImages:void 0})}m(Math.round((e+1)/i.length*90))}if(u===i.length)throw new Error("All PDF widgets failed to load.");N(n),t({type:"TRANSITION",nextStage:y}),j(15e3);const g=o.map(e=>({areaSlug:e.areaSlug,areaTitle:e.areaTitle,widgets:e.widgets.map(e=>{const t=s.get(e.slug);return{slug:e.slug,label:e.pdf.label,Component:t?.Component??null,data:t?.data??null,chartImages:t?.chartImages}})})),E=(new Date).toLocaleString(),T=(0,d.A)(l,"string"==typeof L?L:void 0),R=b.createElement(h,{siteName:l,dateRange:"string"==typeof L?L:void 0,userName:"string"==typeof O?O:void 0,generatedAt:E,areas:g}),D=await(0,a.x8)(R).toBlob();if(n.aborted)throw new DOMException("Aborted","AbortError");const A=URL.createObjectURL(D);p({url:A,filename:T}),(0,d.z)(A,T),G.current=setTimeout(()=>{G.current=null,URL.revokeObjectURL(A)},3e4),V(),t({type:"TRANSITION",nextStage:v}),f("success"),F.current=setTimeout(()=>{F.current=null,U.current()},2e3)}catch(e){if(V(),x(e)&&!$.current)return t({type:"TRANSITION",nextStage:E}),R(),void U.current();t({type:"TRANSITION",nextStage:T}),f("error"),U.current()}}(),()=>{globalThis.removeEventListener("beforeunload",o),V(),null!==F.current&&(clearTimeout(F.current),F.current=null),null!==G.current&&(clearTimeout(G.current),G.current=null),e.abort()}},[]),null}},51169(e,t,r){"use strict";function a(e){if("string"!=typeof e||0===e.length)return"";return e.replace(/^[a-z][a-z0-9+\-.]*:\/\//i,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function n(e,t,r=new Date){const n=a(e)||"report",o=a(t),l=function(e=new Date){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}(r),i=["site-kit",n];return o&&i.push(o),i.push(l),`${i.join("-")}.pdf`}function o(e,t){const r=globalThis.document.createElement("a");r.href=e,r.download=t,r.rel="noopener",r.style.display="none",globalThis.document.body.appendChild(r),r.click(),globalThis.document.body.removeChild(r)}r.d(t,{A:()=>n,z:()=>o})},33855(e,t,r){"use strict";r.d(t,{v:()=>a});const a="core/pdf"},67949(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>DashboardAllTrafficWidgetGA4PDF});var a=r(9397),n=r(82871),o=r(97015);const l="#161b18",i="#6c726e",s="#d8ffc0",c="#1f4c04",u="#ffded3",g="#7a1e00",d=a.vv.create({container:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},metric:{flexDirection:"column"},title:{fontSize:12,fontWeight:"normal",color:l,marginBottom:6},value:{fontSize:24,fontWeight:"bold",color:l},aside:{flexDirection:"column",alignItems:"flex-end"},chip:{borderRadius:10,paddingVertical:4,paddingHorizontal:8},chipText:{fontSize:10},changeLabel:{fontSize:10,color:i,marginTop:8}}),f=({title:e,value:t,change:r,isNegative:n=!1,changeLabel:l})=>{const i=n?u:s,f=n?g:c;return o.createElement(a.Ss,{style:d.container},o.createElement(a.Ss,{style:d.metric},o.createElement(a.EY,{style:d.title},e),o.createElement(a.EY,{style:d.value},t)),o.createElement(a.Ss,{style:d.aside},!!r&&o.createElement(a.Ss,{style:[d.chip,{backgroundColor:i}]},o.createElement(a.EY,{style:[d.chipText,{color:f}]},r)),!!l&&o.createElement(a.EY,{style:d.changeLabel},l)))};var m=r(97015);const p=a.vv.create({heading:{fontSize:13,color:"#6c726e",marginBottom:8},card:{backgroundColor:"#ffffff",borderRadius:14,padding:20,marginBottom:20}}),h=({heading:e,children:t})=>m.createElement(a.Ss,null,!!e&&m.createElement(a.EY,{style:p.heading},e),m.createElement(a.Ss,{style:p.card},t));var b=r(13047),E=r(97015);const S=a.vv.create({chartPlaceholder:{width:"100%",height:64,backgroundColor:"#ebeef0",borderRadius:8,marginTop:16},noData:{fontSize:9,color:"#646464"}});function DashboardAllTrafficWidgetGA4PDF({data:e}){const t=e;if(!t)return E.createElement(h,{heading:(0,n.__)("Your site traffic over time","google-site-kit")},E.createElement(a.EY,{style:S.noData},(0,n.__)("No data available.","google-site-kit")));const{totalsReport:r,graphReport:o}=t,[l,i]=r?.totals||[],s=Number(l?.metricValues?.[0]?.value),c=Number(i?.metricValues?.[0]?.value),u=(0,b.Zf)(c,s),g="number"==typeof u?(0,b.Eo)(u,{style:"percent",signDisplay:"exceptZero",maximumFractionDigits:1}):void 0,d=o?.rows?.length||0,m=d>0?(0,n.sprintf)(/* translators: %d: number of days in the comparison period */ /* translators: %d: number of days in the comparison period */ (0,n.__)("Vs. prev. %d days","google-site-kit"),d):void 0,p=(0,b.Eo)(s||0);return E.createElement(h,{heading:(0,n.__)("Your site traffic over time","google-site-kit")},E.createElement(f,{title:(0,n.__)("All visitors","google-site-kit"),value:p,change:g,isNegative:"number"==typeof u&&u<0,changeLabel:m}),E.createElement(a.Ss,{style:S.chartPlaceholder}))}},12078(){},59203(){}}]);
💾 Save Changes
❌ Cancel