Fully corrected, normalized prompt (left) and non-prompt (right) \jpsi transverse-momentum fraction (\z) measured in jets with $7\ptjetch 15$ \GeVc for $\ptjpsi > 1$ \GeVc in pp collisions at \thirteen. Measurements are compared to PYTHIA 8.311 calculations obtained using the Monash 2013 tune , where \jpsi are produced directly in parton--parton scatterings (black dotted line) and as a part of a parton shower (green dashed line) . The prompt-\jpsi distribution is compared to a model calculation from Zhang and Xing (cyan box). The error bars represent statistical uncertainties, while the boxes around the data points represent the total systematic uncertainty.