PageSourceSearch

https://pearl.davidsbridal.com/static/js/55.443a3e68.chunk.js

js davidsbridal.com collected 2026-09-24 08:54:18 UTC 9,551 bytes, 114 lines download raw bytes

1(this["webpackJsonpdbi-vendor-frontend"]=this["webpackJsonpdbi-vendor-frontend"]||[]).push([[55],{1650:function(e,t,r){"use strict";r.r(t);var n=r(1),c=r.n(n),a=r(4);const i=a.default.div`
2    display: flex;
3    align-items: center;
4    flex-direction: column;
5
6    .tos-content-wrapper {
7        display: flex;
8        justify-content: center;
9        gap: 62px;
10        margin: 0 5%;
11    }
12
13    h3 {
14        color: ${e=>e.theme.colors.primary.base};
15        margin-bottom: 0;
16    }
17
18    .tos-paragraph {
19        margin-top: 0;
20    }
21
22    .sidebar {
23        margin-top: 48px;
24        height: 85vh;
25        overflow: scroll;
26        position: sticky;
27        min-width: 292px;
28        max-width: 292px;
29
30        top: 20px;
31        bottom: 5%;
32
33        ::-webkit-scrollbar {
34            display: none;
35        }
36
37        nav {
38            display: flex;
39            flex-direction: column;
40            gap: 24px;
41
42            a {
43                color: inherit;
44                text-decoration: inherit;
45                display: block;
46                padding-left: 10px;
47
48                &.p2 {
49                    margin-left: 14px;
50                    padding-left: 10px;
51                    text-transform: lowercase;
52                }
53            }
54        }
55
56        @media (max-width: 815px) {
57            display: none;
58        }
59    }
60
61    .inline-back-to-webstore {
62        display: none;
63        margin-bottom: 25px;
64
65        @media (max-width: 815px) {
66            display: block;
67        }
68    }
69
70    .terms-of-service {
71        max-width: 774px;
72        margin: 52px 0 111px;
73
74        h2 {
75            margin-top: 0;
76        }
77    }
78
79    .mk1 {
80    }
81
82    .sticky-buttons {
83        position: sticky;
84        height: 85px;
85        bottom: 0px;
86        background-color: ${e=>e.theme.colors.background.container};
87        box-shadow: 0px -4px 20px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
88        width: 100%;
89        display: flex;
90        justify-content: center;
91        gap: 24px;
92        align-items: center;
93
94        button {
95            width: 204px;
96
97            @media (max-width: 815px) {
98                width: unset;
99            }
100        }
101
102        @media (max-width: 815px) {
103            padding: 0 16px;
104            gap: 10px;
105        }
106    }
107
108    .active {
109        border-left: ${e=>e.theme.colors.primary.base} solid 3px;
110    }
111`;var o=r(34),s=r(2),l=r(6),d=r(88),b=r(437),p=r(23),u=function(){return u=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var c in t=arguments[r])Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c]);return e},u.apply(this,arguments)};var m="",h=null,j=null,v=null;function f(){m="",null!==h&&h.disconnect(),null!==j&&(window.clearTimeout(j),j=null)}function x(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)&&!e.hasAttribute("disabled")||["A","AREA"].includes(e.tagName)&&e.hasAttribute("href")}function O(){var e=null;if("#"===m)e=document.body;else{var t=m.replace("#","");null===(e=document.getElementById(t))&&"#top"===m&&(e=document.body)}if(null!==e){v(e);var r=e.getAttribute("tabindex");return null!==r||x(e)||e.setAttribute("tabindex",-1),e.focus({preventScroll:!0}),null!==r||x(e)||(e.blur(),e.removeAttribute("tabindex")),f(),!0}return!1}function g(e){return c.a.forwardRef((function(t,r){var n="";"string"===typeof t.to&&t.to.includes("#")?n="#"+t.to.split("#").slice(1).join("#"):"object"===typeof t.to&&"string"===typeof t.to.hash&&(n=t.to.hash);var a={};e===p.c&&(a.isActive=function(e,t){return e&&e.isExact&&t.hash===n});var i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var c=0;for(n=Object.getOwnPropertySymbols(e);c<n.length;c++)t.indexOf(n[c])<0&&Object.prototype.propertyIsEnumerable.call(e,n[c])&&(r[n[c]]=e[n[c]])}return r}(t,["scroll","smooth","timeout","elementId"]);return c.a.createElement(e,u({},a,i,{onClick:function(e){var r;f(),m=t.elementId?"#"+t.elementId:n,t.onClick&&t.onClick(e),""===m||e.defaultPrevented||0!==e.button||t.target&&"_self"!==t.target||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||(v=t.scroll||function(e){return t.smooth?e.scrollIntoView({behavior:"smooth"}):e.scrollIntoView()}
111,r=t.timeout,window.setTimeout((function(){!1===O()&&(null===h&&(h=new MutationObserver(O)),h.observe(document,{attributes:!0,childList:!0,subtree:!0}),j=window.setTimeout((function(){f()}),r||1e4))}),0))},ref:r}),t.children)}))}var w=g(p.b),y=(g(p.c),r(3)),k=r(0);const A=e=>{const{publishClick:t,lastUpdated:r,tosSection:c,tosNavLinks:a}=e,{t:p}=Object(d.a)(),[u,m]=Object(n.useState)(!1),h=Object(o.i)(),j=Object(k.jsx)(s.q,{"data-testid":"back-button-link",className:"back-button",startIcon:s.m.ARROW_LEFT,variant:"accent",onClick:()=>h(l.a.vendor.webstore.root),children:p("TermsOfService.BackToWebstore")}),v=Object(k.jsx)(b.a,{i18nKey:"TermsOfService.AcceptTerms",components:{terms:Object(k.jsx)(y.m,{link:"https://davidsbridal.com/legal/terms-conditions"}),privacy:Object(k.jsx)(y.m,{link:"https://davidsbridal.com/content/aem-integration/us/en/legal/privacy-policy.html"}),arbitration:Object(k.jsx)(w,{smooth:!0,to:"#agreementtoarbitratewaiverofcertainrights"}),vendorAgreement:Object(k.jsx)(w,{smooth:!0,to:"#introduction"})}});return Object(k.jsxs)(i,{children:[Object(k.jsxs)("div",{className:"tos-content-wrapper",children:[Object(k.jsx)("div",{className:"sidebar",children:Object(k.jsxs)("nav",{children:[Object(k.jsx)("div",{className:"top",children:j}),a]})}),Object(k.jsxs)("div",{className:"terms-of-service",children:[Object(k.jsx)("div",{className:"inline-back-to-webstore",children:j}),Object(k.jsx)("h2",{children:p("TermsOfService.TermsOfService")}),Object(k.jsxs)("p",{children:[p("TermsOfService.Updated")," ",r]}),Object(k.jsx)("div",{className:"mk1",children:c}),Object(k.jsx)(s.f,{name:"AcceptTerms",label:v,onChange:e=>m(e)})]})]}),Object(k.jsx)("div",{className:"sticky-buttons",children:Object(k.jsx)(s.w,{disabled:!u,onClick:t,children:p("TermsOfService.PublishPearlPage")})})]})},S=e=>{const{tosSection:t}=e,{t:r}=Object(d.a)();return Object(k.jsx)(i,{children:Object(k.jsxs)("div",{className:"terms-of-service",children:[Object(k.jsx)("h2",{children:r("TermsOfService.TermsOfService")}),Object(k.jsx)("div",{className:"mk1",children:t})]})})};var T=r(225),N=r(41);const E=a.default.div`
112    background-color: ${e=>e.theme.colors.background.container};
113`;var I=r(20),C=r(47),L=r(72);t.default=e=>{let{source:t}=e;const{vendor:r,webstore:c}=Object(I.c)(),{authUser:a}=Object(C.a)(),i=Object(o.i)(),s=Object(T.a)(),d=Object(N.b)(),[b,p]=Object(n.useState)(""),[u,m]=Object(n.useState)(""),h=Object(n.useRef)([]),j=Object(n.useRef)([]),[v,f]=Object(n.useState)(!0);Object(n.useEffect)((()=>{Object(L.a)(window.location.href)}),[window.location.href]),Object(n.useEffect)((()=>{let e;return e=new IntersectionObserver((e=>{const t=e.find((e=>e.isIntersecting));if(t){const e=j.current.filter((e=>!!e)),r=e.find((e=>e.className===t.target.parentElement.id+"-content"));r&&(e.forEach((e=>e.classList.remove("active"))),r.classList.add("active"))}}),{threshold:[0,.1,.2,1],rootMargin:"0px"}),h.current.forEach((t=>{t&&e.observe(t)})),()=>{var t;return null===(t=e)||void 0===t?void 0:t.disconnect()}})),Object(n.useEffect)((()=>{const e=["January","February","March","April","May","June","July","August","September","October","November","December"];b||(async()=>{const t=await s.getCurrentTermsOfService();if(f(!1),!t.ok)return void i(l.a.vendor.webstore.error);let r=t.data.markdown.replace(/\r\n/g,"\n");p(r);const n=new Date(t.data.created);m(`${e[n.getMonth()]} ${n.getFullYear()}`)})()}),[b,s,i]);const x=()=>{const e=b.split("####").filter((e=>void 0!==e)),t=[];return e.forEach((r=>{if(r&&e.indexOf(r)+1){let e={},n=r.split(/(\n\n)/g);e.header=n[0],e.body=n.slice(1).join("").replaceAll(/(\n\n)/g,"<br><br>").replaceAll(/(\s\s\n)/g,"<br>"),t.push(e)}})),t},O=e=>{let{data:t}=e;const r=t.header.replaceAll("&","").replaceAll(".","").replaceAll(":","").replaceAll(";","").replaceAll("/","").replaceAll(" ","").toLowerCase().trim();return Object(k.jsx)("div",{children:Object(k.jsxs)("section",{id:r,children:[Object(k.jsx)("h3",{ref:e=>{var t;return null===(t=h.current)||void 0===t?void 0:t.push(e)},children:t.header}),Object(k.jsx)("p",{className:"tos-paragraph",dangerouslySetInnerHTML:{__html:t.body}})]})},t.header)},g=t===l.a.vendor.termsOfService&&a.isAuthedVendor?A:S;return Object(k.jsx)(E,{children:Object(k.jsx)("div",{className:"wrapper",children:!v&&Object(k.jsx)(g,{termsMarkdown:b,tosSection:Object(k.jsx)("div",{className:"markdown-wrapper",children:x().map(((e,t)=>Object(k.jsx)("div",{children:Object(k.jsx)(O,{data:e},e.header)},t)))}),tosNavLinks:x().map(((e,t)=>{const r=e.header.replaceAll("&","").replaceAll(".","").replaceAll(":","").replaceAll(";","").replaceAll("/","").replaceAll(" ","").toLowerCase().trim();return Object(k.jsx)("div",{ref:e=>{var t;return null===(t=j.current)||void 0===t?void 0:t.push(e)},className:r+"-content",children:Object(k.jsx)(w,{smooth:!0,to:`#${r}`,children:e.header.toLowerCase()},e.header)},t)})),lastUpdated:u,publishClick:async()=>
113{if(!a.isAuthedVendor)return;if((await s.putAcceptTermsOfService(r.id)).ok)try{var e;const t=await d.putPublish(c.Id);c.setFromApi(t),null!==(e=r.stripeData)&&void 0!==e&&e.customerId?i(l.a.vendor.dashboard):i(l.a.vendor.prices)}catch{i(l.a.vendor.webstore.root,{state:{publishStatus:"ERROR"}})}}})})})}}}]);
114//# sourceMappingURL=55.443a3e68.chunk.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.