PageSourceSearch

https://careerpark.jp/app-packs/chunk.1724.44195f8213ea13dff3a9.js

js careerpark.jp collected 2026-10-02 14:38:39 UTC 2,930 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkchai_app=self.webpackChunkchai_app||[]).push([[1724],{13301(e,t,r){function n(e=function(e){return e.match(/^\/introduce_user_lps\/(\d+)/)?.[1]??null}(window.location.pathname)){e&&"function"==typeof navigator.sendBeacon&&"function"==typeof crypto?.randomUUID&&document.querySelectorAll("a.set-cpuid[data-client-key]").forEach((t=>{const{clientKey:r}=t.dataset;r&&t.addEventListener("click",(()=>{const n=crypto.randomUUID(),c=function(e,t){try{const r=new URL(e.href);return r.searchParams.set("cp_uid",t),e.setAttribute("href",r.toString()),r.toString()}catch{return null}}(t,n);c&&navigator.sendBeacon(`/api/introduce_user_lps/${e}/tracks`,new URLSearchParams({cp_uid:n,client_key:r,redirect_url:c}))}))}))}r.d(t,{l:()=>n})},41724(e,t,r){r.r(t);var n=r(72145),c=r(96447),i=r(13301);jest.mock("@/apis/hubspot/pre_cv/post",(()=>({postPreCvData:jest.fn()}))),describe("set-cpuidとpre-cv-register/hs-pre-cv-btnの連携",(()=>{const e="11111111-1111-1111-1111-111111111111";beforeEach((()=>{Object.defineProperty(r.g,"crypto",{value:{randomUUID:jest.fn().mockReturnValue(e)},configurable:!0}),Object.defineProperty(navigator,"sendBeacon",{value:jest.fn().mockReturnValue(!0),configurable:!0,writable:!0})})),afterEach((()=>{document.body.innerHTML="",jest.clearAllMocks()})),test("同一要素にset-cpuidとpre-cv-registerが付与されている場合、pre-cv-registerが計測するdestinationUrlにcp_uidが含まれる",(()=>{document.body.innerHTML='\n      <a href="https://app.offerbox.jp/entry" class="set-cpuid pre-cv-register" data-client-key="offerbox">CTA</a>\n    ',(0,i.l)("456"),(0,c.V)({user_id:123,introduce_user_lp_id:456},null,null);document.querySelector(".set-cpuid").click();const t=n.b;expect(t).toHaveBeenCalledWith(expect.objectContaining({destinationUrl:`https://app.offerbox.jp/entry?cp_uid=${e}`}))}))}))},72145(e,t,r){r.d(t,{b:()=>n});const n=({userId:e,introduceUserLpId:t,externalUrl:r,creativeId:n,ctaBtnClasses:c,destinationUrl:i})=>{if("function"!=typeof navigator.sendBeacon)return!1;const a=new Blob([JSON.stringify({user_id:e,introduce_user_lp_id:t,external_url:r,creative_id:n,destination_url:i,cta_btn_classes:c})],{type:"application/json"});return navigator.sendBeacon("/api/introduce_user_lp/pre_conversion",a)}},96447(e,t,r){r.d(t,{V:()=>a});var n=r(72145),c=r(46996);function i(e){return!("number"==typeof e&&!isNaN(e))}function a(e=c.X.pre_cv_register_tag_data,t=c.X.external_url,r=c.X.input_creative_id){if(i(e?.user_id)||i(e?.introduce_user_lp_id))return;const a=e?.user_id,o=e?.introduce_user_lp_id,s=r??null,u=t??null;document.querySelectorAll(".pre-cv-register, .hs-pre-cv-btn").forEach((e=>{e&&e.addEventListener("click",(()=>{(0,n.b)({userId:a,introduceUserLpId:o,ctaBtnClasses:Array.from(e.classList),externalUrl:u,creativeId:s,destinationUrl:e.getAttribute("href")??null})}))}))}}}]);
2//# sourceMappingURL=chunk.1724.44195f8213ea13dff3a9.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.