PageSourceSearch

https://hexclad.com.au/cdn/shopifycloud/checkout-web/assets/c1/27f09e31.9JRPaddX.js

js hexclad.com.au collected 2026-10-08 01:56:10 UTC 6,849 bytes, 1 lines download raw bytes

1import{A as e,a as t,b as n,c as r,d as o,K as i,e as s,f as c,y as a,n as l,u as d,S as u,N as p,g as f,h as m,r as h}from"./2c1ab0fe.B2yRRyAW.js";import{R as v}from"./66338e00.D7k1ZYrh.js";const g=0,b=1,y=2,w=3,k="~";function $(i,s){const c=new Map;function a(e){for(const t of e){const[e,n]=t;switch(e){case 0:l(n,t[2],t[3]);break;case 1:d(n,t[2])}}i.mutate(e)}function l(e,t,n){if(c.has(e)||c.set(e,[]),c.get(e).splice(n,0,{id:t.id,slot:"attributes"in t?t.attributes?.slot:void 0}),"children"in t&&t.children)for(const[r,o]of t.children.entries())l(t.id,o,r)}function d(e,t){const n=c.get(e);if(!n?.[t])return;const r=n[t].id;n.splice(t,1),u(r)}function u(e){const t=c.get(e);if(t){for(const e of t)u(e.id);c.delete(e)}}return function(i,...l){switch(i){case o:{const[e]=l;a(e.map((e,t)=>[0,k,x(e,s),t]));break}case r:{const[e=k,t,n]=l,r=[],o=c.get(e);if(o){const t=o.findIndex(({id:e})=>e===n.id);t>=0&&r.push([1,e,t])}r.push([0,e,x(n,s),t]),a(r);break}case n:{const[e,t]=l;a([[1,e??k,t]]);break}case t:{const[e,t]=l;a([[2,e,t]]);break}case e:{const[e,t]=l,n=c.get(e),r=[];for(const[o,i]of Object.entries(t)){const t=n?.findIndex(({slot:e})=>e===o)??-1;N(i)?(t>=0&&r.push([1,e,t]),r.push([0,e,P(o,i,s),c.get(e)?.length??0])):t>=0?r.push([1,e,t]):r.push([3,e,o,i])}a(r);break}default:throw new Error(`Unsupported action type: ${i}`)}}}function x(e,t){switch(e.kind){case c:return function({id:e,text:t}){return{id:e,type:3,data:t}}(e);case s:return function({id:e,type:t,props:n,children:r},o){const i=o?.elements?.[t]??t,[s,c]=function(e){const t={},n={};for(const[r,o]of Object.entries(e))N(o)?t[r]=o:n[r]=o;return[t,n]}(n);return{id:e,type:1,element:i,properties:c,children:[...r.map(e=>x(e,o)),...j(s,o)]}}(e,t);default:return{id:e.id,type:8,data:"added by remote-ui legacy adaptor to replace a fragment rendered as a child"}}}function N(e){return null!=e&&"object"==typeof e&&"kind"in e&&e.kind===i}function j(e,t){return Object.entries(e).map(([e,n])=>P(e,n,t))}function P(e,t,n){return{id:t.id,element:n?.slotProps?.wrapper??"remote-fragment",attributes:{slot:e},type:1,children:t.children.map(e=>x(e,n))}}class C{root=(()=>({id:k,type:9,properties:a({}),attributes:a({}),eventListeners:a({}),children:a([])}))();attached=(()=>new Map([[k,this.root]]))();parents=(()=>new Map)();implementations=(()=>new Map)();constructor({retain:e,release:t}={}){const{attached:n,parents:r}=this,o=function({call:e,insertChild:t,removeChild:n,updateText:r,updateProperty:o}){const i={[g]:t,[b]:n,[y]:r,[w]:o};return{call:e,mutate(e){for(const[t,...n]of e)i[t](...n)}}}({call:(e,t,...n)=>{const r=this.implementations.get(e),o=r?.[t];if("function"!=typeof o)throw new Error(`Node ${e} does not implement the ${t}() method`);return o(...n)},insertChild:(e,t,r)=>{const o=n.get(e);if(!o)return;const s=[...o.children.peek()],c=i(t,o);r===s.length?s.push(c):s.splice(r,0,c),o.children.value=s},removeChild:(e,t)=>{const r=n.get(e);if(!r)return;const o=[...r.children.peek()],[i]=o.splice(t,1);i&&(r.children.value=o,s(i))},updateProperty:(r,o,i,s=1)=>{const c=n.get(r);if(!c)return;let a;switch(s){case 1:a=c.properties;break;case 2:a=c.attributes;break;case 3:a=c.eventListeners}const l=a.peek(),d=l[o];if(Object.is(d,i))return;e?.(i);const u={...l};if(u[o]=i,a.value=u,"slot"===o){const e=this.parents.get(r),t=null==e?e:n.get(e);t&&(t.children.value=[...t.children.peek()])}t?.(d)},updateText:(e,t)=>
1{const r=n.get(e);r&&(r.data.value=t)}});function i(t,o){let s;switch(t.type){case 3:case 8:{const{id:e,type:n,data:r}=t;s={id:e,type:n,data:a(r)};break}case 1:{const{id:n,type:r,element:o,children:c,properties:l,attributes:d,eventListeners:u}=t;e?.(l),e?.(u);const p=[];s={id:n,type:r,element:o,children:a(p),properties:a(l??{}),attributes:a(d??{}),eventListeners:a(u??{})};for(const e of c)p.push(i(e,s));break}default:throw new Error(`Unknown node type: ${JSON.stringify(t)}`)}return n.set(s.id,s),r.set(s.id,o.id),s}function s(e){if(n.delete(e.id),r.delete(e.id),t&&"properties"in e&&t(e.properties.peek()),"children"in e)for(const t of e.children.peek())s(t)}this.connection={call:o.call,mutate(e){l(()=>{o.mutate(e)})}}}implement({id:e},t){null==t?this.implementations.delete(e):this.implementations.set(e,t)}get({id:e}){return this.attached.get(e)}}function E(e,{receiver:t,components:n}){switch(e.type){case 1:{const r=n.get(e.element);if(null==r)throw new Error(`No component found for remote element: ${e.element}`);return d(r,{element:e,receiver:t,components:n},e.id)}case 3:return e.data;case 8:return null;default:throw new Error(`Unknown remote node type: ${String(e)}`)}}function O(e){return function(...t){if(1===t.length&&t[0]instanceof Event){const n=t[0];if(n.target!==n.currentTarget)return;return"detail"in n?e(n.detail):e()}return e(...t)}}const R=Symbol.for("remote-dom.element"),I=function(e){const{receiver:t}=e,n=t.root.children.value;return d(u,{children:n.map(t=>E(t,e))})},L=function(e,{name:t,eventProps:n}={}){const r=p(function({element:t,receiver:r,components:o}){const i=f(),{id:s}=t,c=function(e,t){if(!e)return;const{children:n,properties:r,attributes:o,eventListeners:i}=e,s=i.value,c=[],a={...r.value,...o.value};if(t.eventProps)for(const[l,d]of Object.entries(t.eventProps)){const e=d?.event;if(null==e)continue;const t=s[e];t&&(a[l]=O(t))}else for(const[l,d]of Object.entries(s))a[`on${l[0].toUpperCase()}${l.slice(1)}`]=O(d);for(const l of n.value){let e=1===l.type?l.attributes.peek().slot:void 0;if("string"!=typeof e&&(e=void 0),e){const n=E(l,t);a[e]=a[e]?d(u,{children:[a[e],n]}):n}else c.push(E(l,t))}return{...a,children:c}}(t,{receiver:r,components:o,eventProps:n});if(c[R]=t,null==i.current){const e={id:s,receiver:r};e.instanceRef=function(e){let t=null;return{get current(){return t},set current(n){t=n,e.receiver.implement(e,n)}}}(e),i.current=e}return i.current.id=s,i.current.receiver=r,m(()=>{const e={id:s};return r.implement(e,i.current?.instanceRef.current),()=>{r.implement(e,null)}},[s,r]),d(e,{ref:i.current.instanceRef,...c})});return r.displayName=t??`RemoteComponentRenderer(${e.displayName??e.name??"Component"})`,r},T=function({element:e,receiver:t,components:n}){const r={receiver:t,components:n};return d(u,{children:e.children.value.map(e=>E(e,r))})};class M extends C{constructor(e){super({retain:h,release:()=>{}});const t=this.connection.call;this.connection.call=(n,r,...o)=>{try{return t(n,r,...o)}catch(i){if(i instanceof Error&&i.message.includes("does not implement the")){const t=this.get({id:String(n)}),o=t&&"element"in t?t.element:void 0;throw new v(`${o?`Node ${n} (${o})`:`Node ${n}`} does not implement the ${r}() method. `,{metadata:{nodeId:n,method:r,nodeType:o,extensionId:e?.id,extensionName:e?.name,extensionTarget:e?.extensionPoint.target,appId:e?.appId,appName:e?.appName,apiVersion:e?.apiVersion}})}throw i}}}}export{M as L,I as R,$ as a,T as b,L as c,E as r};

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.