PageSourceSearch

https://c4s-static.c4s-dev.workers.dev/assets/useC4SPlusPromoUrl-CHvUBZP9.js

js c4s-static.c4s-dev.workers.dev collected 2026-10-03 05:51:01 UTC 1,238 bytes, 1 lines download raw bytes

1import{d}from"./index-Bqrpnaua.js";import{r as n}from"./jsx-runtime-kF-aRxYe.js";import{g as p}from"./components-B0up9rt8.js";const h="https://www.c4splus.com/landing2",C={topHomepage:"promo_plus_unlock_trial",homepageBar:"promo_260817_homepage_bar",categoryBar:"promo_260817_category_bar",userMenu:"promo_260817_usermenu"},I=({campaign:o,location:t,customerId:r,sessionId:e,landingUrl:m=h})=>{const s=new URL(m);return s.searchParams.set("utm_source","clips4sale"),s.searchParams.set("utm_medium","banner"),t&&s.searchParams.set("utm_content",t),s.searchParams.set("utm_campaign",o),r&&s.searchParams.set("utm_cid",r),e&&s.searchParams.set("utm_sid",e),`/sso/init?${new URLSearchParams({callback:s.toString()})}`};let _=!1;const U=()=>{_=!0},P=()=>_,l={customerId:"",sessionId:""};let c;const i=()=>{if(!c)try{c={customerId:d.getCustomerId()||"",sessionId:d.getSessionId()||""}}catch{c=l}return c},y=o=>{var s,u;const t=p(),r=((u=(s=t[t.length-1])==null?void 0:s.handle)==null?void 0:u.location)??"",[e,m]=n.useState(()=>P()?i():l);return n.useEffect(()=>{const a=i();a===e||!a.customerId&&!a.sessionId||m(a)},[e]),n.useMemo(()=>I({campaign:o,location:r,customerId:e.customerId,sessionId:e.sessionId}),[o,r,e])};export{C,U as m,y as u};

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.