PageSourceSearch

https://all-in-one-store-u65ap.ondigitalocean.app/assets/Checkbox-BPrTdIr3.js

js all-in-one-store-u65ap.ondigitalocean.app collected 2026-10-03 14:54:23 UTC 4,349 bytes, 1 lines download raw bytes

1import{R as e,r as i}from"./jsx-runtime-kF-aRxYe.js";import{i as r,v as w,o as J,x as _,y as Q,T,n as X,g as Y,m as ee}from"./Page-RCHDyLd1.js";var S=function(l){return e.createElement("svg",Object.assign({viewBox:"0 0 20 20"},l),e.createElement("path",{fillRule:"evenodd",d:"M5 10c0-.414.336-.75.75-.75h8.5c.414 0 .75.336.75.75s-.336.75-.75.75h-8.5c-.414 0-.75-.336-.75-.75Z"}))};S.displayName="MinusIcon";const ae=i.createContext(!1);var a={Checkbox:"Polaris-Checkbox",ChoiceLabel:"Polaris-Checkbox__ChoiceLabel",Backdrop:"Polaris-Checkbox__Backdrop",Input:"Polaris-Checkbox__Input","Input-indeterminate":"Polaris-Checkbox__Input--indeterminate",Icon:"Polaris-Checkbox__Icon",animated:"Polaris-Checkbox--animated",toneMagic:"Polaris-Checkbox--toneMagic",hover:"Polaris-Checkbox--hover",error:"Polaris-Checkbox--error",checked:"Polaris-Checkbox--checked",pathAnimation:"Polaris-Checkbox--pathAnimation"},t={Choice:"Polaris-Choice",labelHidden:"Polaris-Choice--labelHidden",Label:"Polaris-Choice__Label",Control:"Polaris-Choice__Control",disabled:"Polaris-Choice--disabled",toneMagic:"Polaris-Choice--toneMagic",Descriptions:"Polaris-Choice__Descriptions",HelpText:"Polaris-Choice__HelpText"};function ne({id:n,label:l,disabled:d,error:p,children:y,labelHidden:u,helpText:h,onClick:m,labelClassName:M,fill:L,bleed:s,bleedBlockStart:o,bleedBlockEnd:f,bleedInlineStart:B,bleedInlineEnd:P,tone:v}){const H=r(t.Choice,u&&t.labelHidden,d&&t.disabled,v&&t[w("tone",v)],M),R={..._("choice","bleed-block-end","space",f||s),..._("choice","bleed-block-start","space",o||s),..._("choice","bleed-inline-start","space",B||s),..._("choice","bleed-inline-end","space",P||s),...Object.fromEntries(Object.entries(J("choice","fill",L)).map(([b,j])=>[b,j?"100%":"auto"]))},E=e.createElement("label",{className:H,htmlFor:n,onClick:m,style:Q(R)},e.createElement("span",{className:t.Control},y),e.createElement("span",{className:t.Label},e.createElement(T,{as:"span",variant:"bodyMd"},l))),g=h?e.createElement("div",{className:t.HelpText,id:A(n)},e.createElement(T,{as:"span",tone:d?void 0:"subdued"},h)):null,I=p&&typeof p!="boolean"&&e.createElement("div",{className:t.Error},e.createElement(X,{message:p,fieldID:n})),N=g||I?e.createElement("div",{className:t.Descriptions},I,g):null;return N?e.createElement("div",null,E,N):E}function A(n){return`${n}HelpText`}const ce=i.forwardRef(function({ariaControls:l,ariaDescribedBy:d,label:p,labelHidden:y,checked:u=!1,helpText:h,disabled:m,id:M,name:L,value:s,error:o,onChange:f,onFocus:B,onBlur:P,labelClassName:v,fill:H,bleed:R,bleedBlockStart:E,bleedBlockEnd:g,bleedInlineStart:I,bleedInlineEnd:N,tone:b},j){const c=i.useRef(null),W=i.useId(),C=M??W,F=i.useContext(ae);i.useImperativeHandle(j,()=>({focus:()=>{c.current&&c.current.focus()}}));const $=()=>{P&&P()},q=()=>{f==null||c.current==null||m||(f(c.current.checked,C),c.current.focus())},k=[];o&&typeof o!="boolean"&&k.push(ee(C)),h&&k.push(A(C)),d&&k.push(d);const z=k.length?k.join(" "):void 0,K=r(a.Checkbox,o&&a.error),x=u==="indeterminate",D=!x&&!!u,U=x?{indeterminate:"true","aria-checked":"mixed"}:{"aria-checked":D},V=e.createElement("svg",{viewBox:"0 0 16 16",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision"},e.createElement("path",{className:r(u&&a.checked),d:"M1.5,5.5L3.44655,8.22517C3.72862,8.62007,4.30578,8.64717,4.62362,8.28044L10.5,1.5",transform:"translate(2 2.980376)",opacity:"0",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",pathLength:"1"})),Z=r(a.Input,x&&a["Input-indeterminate"],b&&a[w("tone",b)]),G={helpText:h,error:o,bleed:R,bleedBlockStart:E,bleedBlockEnd:g,bleedInlineStart:I,bleedInlineEnd:N};return e.createElement(ne,Object.assign({id:C,label:p,labelHidden:y,disabled:m,labelClassName:r(a.ChoiceLabel,v),fill:H,tone:b},G),e.createElement("span",{className:K},e.createElement("input",Object.assign({ref:c,id:C,name:L,value:s,type:"checkbox",checked:D,disabled:m,className:Z,onBlur:$,onChange:te,onClick:q,onFocus:B,"aria-invalid":o!=null,"aria-controls":l,"aria-describedby":z,role:F?"presentation":"checkbox"}
1,U)),e.createElement("span",{className:a.Backdrop,onClick:O,onKeyUp:O}),e.createElement("span",{className:r(a.Icon,!x&&a.animated)},x?e.createElement(Y,{source:S}):V)))});function te(){}function O(n){n.stopPropagation()}export{ce as C,ne as a,A as h};

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.