PageSourceSearch

https://s1.sellfox.com/sellfox-web/2026-09/dist/C70wW-e5.js

js sellfox.com collected 2026-10-01 10:13:09 UTC 6,566 bytes, 1 lines download raw bytes

1import{f as ce,_ as re,a as ue}from"./ksfC0rS3.js";import{d as J,P as fe,r as f,Q as U,o as Q,R as Z,S as ve,t as d,v as h,x as v,G as $,H as F,I as A,y as j,L as de,_ as H,C as _e,M as pe,J as N,F as L,z as me}from"./YItXswQM.js";import{P,F as X,s as Y}from"./DtbZCJV8.js";import{u as he}from"./BQ6AIENJ.js";import"./CoCqrXQN.js";import"./D0Q9cRvH.js";import"./jlRFKtHl.js";import"./Cyg_3wO7.js";import"./BZUVUJ2w.js";import"./BhMg-Dhp.js";import"./CCHNiH88.js";const ge=["onClick"],ye={class:"group_label_wrap"},Te={class:"group_label"},be={class:"function_nav_sub_items"},Ce=["onClick"],ke=1200,we=J({__name:"AmazonFunctionTabs",setup(M){const _=fe(),{targetNodeId:C,functionNavWrapViewportTop:g}=ce,{scrollDocumentToHash:y}=Y,c=f([]),I=f(null),k=f(null),a=f({}),u=f({}),l=f("data"),s=f(""),r=f(!1),T=f({});function z(n,e){n&&(a.value[e]=n)}function K(n,e){n&&(u.value[e]=n)}U(()=>_.query,n=>{if(r.value)return;const e=n==null?void 0:n.target;if(e){const t=c.value.find(o=>o.children.some(i=>i.value===e));if(t)l.value=t.key,s.value=e,w(e,t.key);else{const o=c.value.find(i=>i.key===e);o&&(l.value=e,o.children.length>0&&(s.value=o.children[0].value,w(o.children[0].value,e)))}}W()}),U(C,n=>{if(!r.value&&n){const e=c.value.find(t=>t.children.some(o=>o.value===n));e&&(l.value=e.key,s.value=n,w(n,e.key)),W(),B()}});const ee=["data","adv","operate","ai","finance","inventory","more"];function te(){const n=P.amazon,e=X[n];e&&(c.value=ee.filter(t=>e[t]).map(t=>{var o,i;return{key:t,label:((o=e[t].mainImageConfig)==null?void 0:o.title)||((i=e[t].mainImageConfig)==null?void 0:i.tabTitle)||"",children:e[t].tabsOptions||[]}}),c.value.length>0&&(l.value=c.value[0].key,c.value[0].children.length>0&&(s.value=c.value[0].children[0].value)))}function W(){const n=k.value;if(!n)return;const e=a.value[l.value];if(!e)return;const t=n.getBoundingClientRect(),i=e.getBoundingClientRect().left-t.left+n.scrollLeft,m=Object.values(a.value),x=m.length,b=m.indexOf(e)>=x-3;let S=0;if(!b)S=i;else{const G=m[m.length-1];if(G){const le=G.getBoundingClientRect().left-t.left+n.scrollLeft,se=G.offsetWidth,ie=t.width;S=le+se-ie}}n.scrollTo({left:Math.max(0,S),behavior:"smooth"})}function ne(n){return T.value[n]||{left:"0px",display:"none"}}function O(){const n=u.value[s.value];if(!n)return null;const e=a.value[l.value];if(!e)return null;const t=e.querySelector(".function_nav_sub_wrap"),o=e.querySelector(".function_nav_sub_items");if(!t||!o)return null;const i=n.getBoundingClientRect(),m=t.getBoundingClientRect();return{left:`${i.left-m.left+o.scrollLeft}px`,width:`${n.offsetWidth}px`,opacity:s.value?"1":"0",display:"block"}}function B(){if(!k.value)return;if(!u.value[s.value]){c.value.forEach(o=>{T.value[o.key]={left:"0px"}});return}const t=O();t&&(T.value[l.value]={...t})}function q(){[100,300,500].forEach(e=>{setTimeout(()=>{const t=O();t&&(T.value[l.value]={...t})},e)})}function R(){const n=I.value;if(!n){g.value=null;return}const e=n.getBoundingClientRect().top;g.value=e}function D(){R(),q()}let p=null;function V(n){r.value=!0,p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,r.value=!1},ke)}function oe(n){l.value=n;const e=c.value.find(t=>t.key===n);e&&e.children.length>0&&(s.value=e.children[0].value),y(s.value),V(s.value),W(),setTimeout(()=>{w(s.value,l.value)},300)}function w(n,e){var o;const t=c.value.find(i=>i.key===e);if(t){const x=t.children.findIndex(b=>b.value===n),E=(o=a.value[e])==null?void 0:o.querySelector(".function_nav_sub_items");if(E){if(x>=3){const b=u.value[n];b&&E.scrollTo({left:b.offsetLeft-150*(x-3),behavior:"smooth"})}else E.scrollTo({left:0,behavior:"smooth"});q()}}}function ae(n,e,t){n.stopPropagation(),l.value=t,s.value=e.value,y(e.value),V(e.value),B(),w(e.value,t)}return Q(()=>{R(),window.addEventListener("scroll",R,{passive:!0}),window.addEventListener("resize",D),te(),Z(()=>{B()})}),ve(()=>{p!=null&&(clearTimeout(p),p=null),window.removeEventListener("scroll",R),window.removeEventListener("resize",D),g.value=null}),(n,e)=>(d(),h("div",{ref_key:"functionNavWrapRef",ref:I,class:"function_nav_wrap"},[v("div",{ref_key:"navWrapRef",ref:k,class:"nav_wrap"},[(d(!0),h($,null,F(c.value,t=>(d(),h("div",{key:t.key,ref_for:!0,ref:o=>z(o,t.key),class:A([{is_active:l.value===t.key},"function_nav_group"]),onClick:o=>oe(t.key)},[v("div",ye,[v("span",Te,j(t.label),1),e[0]||(e[0]=v("svg",{class:"group_arrow",width:"6",height:"11",viewBox:"0 0 6 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[v("path",{d:"M4.27114 5.19048L0.190381 9.27124C-0.0634599 9.52508 -0.0634598 9.93664 0.190381 10.1905C0.444222 10.4443 0.855778 10.4443 1.10962 10.1905L5.65 5.6501C5.90384 5.39626 5.90384 4.9847 5.
165 4.73086L1.10962 0.190478C0.855778 -0.0633622 0.444221 -0.0633621 0.19038 0.190478C-0.0634606 0.444319 -0.0634606 0.855877 0.19038 1.10972L4.27114 5.19048Z",fill:"#BCBEC2"})],-1))]),v("div",{class:A([{is_expanded:l.value===t.key},"function_nav_sub_wrap"])},[v("div",be,[v("div",{class:"nav_item_active_flow",style:de(ne(t.key)),"aria-hidden":"true"},null,4),(d(!0),h($,null,F(t.children,o=>(d(),h("div",{key:o.value,ref_for:!0,ref:i=>K(i,o.value),class:A([{is_active:s.value===o.value&&l.value===t.key},"function_nav_item"])},[v("a",{onClick:i=>ae(i,o,t.key),class:"function_nav_item_label"},j(o.label),9,Ce)],2))),128))])],2)],10,ge))),128))],512)],512))}}),xe=H(we,[["__scopeId","data-v-e9064f69"]]),Ie={class:"function_page"},Re={class:"function_body"},Ee=J({__name:"AmazonFunctionPage",setup(M){const _=_e(),{scrollDocumentToHash:C}=Y;he(pe);const g=["data","adv","operate","ai","finance","inventory","more"],y=f({}),c=f({name:"amazon"});function I(){var s;const a=X[P.amazon];if(!a)return;const u={};g.forEach(r=>{a[r]&&(u[r]=a[r])}),y.value=u;const l=g.find(r=>a[r]);l&&a[l]&&(c.value=((s=a[l])==null?void 0:s.mainImageConfig)||{})}function k(){var s,r;if(_.hash)return _.hash.replace("#","");const a=typeof _.query.target=="string"?_.query.target:"";if(!a)return"";const u=y.value[a];return((r=(s=u==null?void 0:u.tabsOptions)==null?void 0:s[0])==null?void 0:r.value)||a}return Q(async()=>{I(),await Z();const a=k();a&&C(a,{scrollFromTop:!0})}),(a,u)=>{const l=re,s=xe,r=ue;return d(),h("div",Ie,[(d(),N(l,{key:L(c).name,"main-image-config":L(c)},null,8,["main-image-config"])),me(s),v("div",Re,[(d(!0),h($,null,F(L(y),(T,z)=>(d(),N(r,{key:z,contexts:T.contexts,platform:("PlatformType"in a?a.PlatformType:L(P)).amazon},null,8,["contexts","platform"]))),128))])])}}}),Le=H(Ee,[["__scopeId","data-v-cae3f5cf"]]),ze={};function We(M,_){const C=Le;return d(),N(C)}const De=H(ze,[["render",We]]);export{De 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.