@creaditor/web-starterkit 1.0.39 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/112.creaditor.bundle.js.gz +0 -0
- package/dist/1142.creaditor.bundle.js.gz +0 -0
- package/dist/1204.creaditor.bundle.js.gz +0 -0
- package/dist/1271.creaditor.bundle.js.gz +0 -0
- package/dist/1317.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/1317.creaditor.bundle.js.gz +0 -0
- package/dist/1334.creaditor.bundle.js.gz +0 -0
- package/dist/1396.creaditor.bundle.js.gz +0 -0
- package/dist/1403.creaditor.bundle.js.gz +0 -0
- package/dist/1456.creaditor.bundle.js.gz +0 -0
- package/dist/1529.creaditor.bundle.js.gz +0 -0
- package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/168.creaditor.bundle.js.gz +0 -0
- package/dist/170.creaditor.bundle.js.gz +0 -0
- package/dist/175.creaditor.bundle.js.gz +0 -0
- package/dist/1972.creaditor.bundle.js.gz +0 -0
- package/dist/2001.creaditor.bundle.js +16 -16
- package/dist/2001.creaditor.bundle.js.gz +0 -0
- package/dist/211.creaditor.bundle.js.gz +0 -0
- package/dist/2112.creaditor.bundle.js.gz +0 -0
- package/dist/2154.creaditor.bundle.js.gz +0 -0
- package/dist/2234.creaditor.bundle.js.gz +0 -0
- package/dist/2298.creaditor.bundle.js.gz +0 -0
- package/dist/235.creaditor.bundle.js.gz +0 -0
- package/dist/2350.creaditor.bundle.js.gz +0 -0
- package/dist/2377.creaditor.bundle.js.gz +0 -0
- package/dist/2384.creaditor.bundle.js.gz +0 -0
- package/dist/2397.creaditor.bundle.js.gz +0 -0
- package/dist/2409.creaditor.bundle.js.gz +0 -0
- package/dist/2547.creaditor.bundle.js.gz +0 -0
- package/dist/2550.creaditor.bundle.js.gz +0 -0
- package/dist/2590.creaditor.bundle.js.gz +0 -0
- package/dist/2682.creaditor.bundle.js +195 -0
- package/dist/{7051.creaditor.bundle.js.LICENSE.txt → 2682.creaditor.bundle.js.LICENSE.txt} +0 -6
- package/dist/{7051.creaditor.bundle.js.LICENSE.txt.gz → 2682.creaditor.bundle.js.LICENSE.txt.gz} +0 -0
- package/dist/2682.creaditor.bundle.js.gz +0 -0
- package/dist/2706.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2706.creaditor.bundle.js.gz +0 -0
- package/dist/271.creaditor.bundle.js.gz +0 -0
- package/dist/2717.creaditor.bundle.js.gz +0 -0
- package/dist/2765.creaditor.bundle.js.gz +0 -0
- package/dist/2773.creaditor.bundle.js.gz +0 -0
- package/dist/2833.creaditor.bundle.js.gz +0 -0
- package/dist/2837.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2837.creaditor.bundle.js.gz +0 -0
- package/dist/2956.creaditor.bundle.js.gz +0 -0
- package/dist/2963.creaditor.bundle.js.gz +0 -0
- package/dist/3105.creaditor.bundle.js.gz +0 -0
- package/dist/3233.creaditor.bundle.js.gz +0 -0
- package/dist/3418.creaditor.bundle.js.gz +0 -0
- package/dist/3521.creaditor.bundle.js.gz +0 -0
- package/dist/353.creaditor.bundle.js.gz +0 -0
- package/dist/3545.creaditor.bundle.js.gz +0 -0
- package/dist/3553.creaditor.bundle.js.gz +0 -0
- package/dist/3606.creaditor.bundle.js.gz +0 -0
- package/dist/3792.creaditor.bundle.js.gz +0 -0
- package/dist/380.creaditor.bundle.js.gz +0 -0
- package/dist/3827.creaditor.bundle.js.gz +0 -0
- package/dist/3847.creaditor.bundle.js.gz +0 -0
- package/dist/3875.creaditor.bundle.js.gz +0 -0
- package/dist/3971.creaditor.bundle.js.gz +0 -0
- package/dist/4061.creaditor.bundle.js.gz +0 -0
- package/dist/407.creaditor.bundle.js.gz +0 -0
- package/dist/4074.creaditor.bundle.js.gz +0 -0
- package/dist/4100.creaditor.bundle.js.gz +0 -0
- package/dist/4109.creaditor.bundle.js.gz +0 -0
- package/dist/4114.creaditor.bundle.js.gz +0 -0
- package/dist/4161.creaditor.bundle.js.gz +0 -0
- package/dist/4186.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4186.creaditor.bundle.js.gz +0 -0
- package/dist/4288.creaditor.bundle.js.gz +0 -0
- package/dist/4413.creaditor.bundle.js.gz +0 -0
- package/dist/4475.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js.gz +0 -0
- package/dist/4615.creaditor.bundle.js.gz +0 -0
- package/dist/4639.creaditor.bundle.js.gz +0 -0
- package/dist/467.creaditor.bundle.js.gz +0 -0
- package/dist/4762.creaditor.bundle.js.gz +0 -0
- package/dist/4770.creaditor.bundle.js.gz +0 -0
- package/dist/4819.creaditor.bundle.js +235 -198
- package/dist/4819.creaditor.bundle.js.gz +0 -0
- package/dist/4947.creaditor.bundle.js.gz +0 -0
- package/dist/4987.creaditor.bundle.js.gz +0 -0
- package/dist/4988.creaditor.bundle.js.gz +0 -0
- package/dist/5119.creaditor.bundle.js.gz +0 -0
- package/dist/5133.creaditor.bundle.js.gz +0 -0
- package/dist/5156.creaditor.bundle.js +1 -1
- package/dist/5156.creaditor.bundle.js.gz +0 -0
- package/dist/5284.creaditor.bundle.js.gz +0 -0
- package/dist/5379.creaditor.bundle.js.gz +0 -0
- package/dist/5391.creaditor.bundle.js.gz +0 -0
- package/dist/5411.creaditor.bundle.js.gz +0 -0
- package/dist/5501.creaditor.bundle.js.gz +0 -0
- package/dist/5530.creaditor.bundle.js.gz +0 -0
- package/dist/5666.creaditor.bundle.js.gz +0 -0
- package/dist/567.creaditor.bundle.js.gz +0 -0
- package/dist/5713.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/5713.creaditor.bundle.js.gz +0 -0
- package/dist/574.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/574.creaditor.bundle.js.gz +0 -0
- package/dist/578.creaditor.bundle.js.gz +0 -0
- package/dist/5791.creaditor.bundle.js.gz +0 -0
- package/dist/5839.creaditor.bundle.js.gz +0 -0
- package/dist/5849.creaditor.bundle.js.gz +0 -0
- package/dist/5850.creaditor.bundle.js.gz +0 -0
- package/dist/5884.creaditor.bundle.js.gz +0 -0
- package/dist/59.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/59.creaditor.bundle.js.gz +0 -0
- package/dist/5909.creaditor.bundle.js +19 -19
- package/dist/5909.creaditor.bundle.js.gz +0 -0
- package/dist/5926.creaditor.bundle.js.gz +0 -0
- package/dist/6036.creaditor.bundle.js.gz +0 -0
- package/dist/6216.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/6216.creaditor.bundle.js.gz +0 -0
- package/dist/638.creaditor.bundle.js.gz +0 -0
- package/dist/6442.creaditor.bundle.js.gz +0 -0
- package/dist/6496.creaditor.bundle.js.gz +0 -0
- package/dist/653.creaditor.bundle.js.gz +0 -0
- package/dist/6751.creaditor.bundle.js.gz +0 -0
- package/dist/6814.creaditor.bundle.js.gz +0 -0
- package/dist/6937.creaditor.bundle.js.gz +0 -0
- package/dist/7055.creaditor.bundle.js.gz +0 -0
- package/dist/715.creaditor.bundle.js +4 -4
- package/dist/715.creaditor.bundle.js.gz +0 -0
- package/dist/7155.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +32 -30
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/7238.creaditor.bundle.js.gz +0 -0
- package/dist/7255.creaditor.bundle.js.gz +0 -0
- package/dist/738.creaditor.bundle.js.gz +0 -0
- package/dist/7380.creaditor.bundle.js.gz +0 -0
- package/dist/7463.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/7463.creaditor.bundle.js.gz +0 -0
- package/dist/7466.creaditor.bundle.js.gz +0 -0
- package/dist/752.creaditor.bundle.js.gz +0 -0
- package/dist/7523.creaditor.bundle.js.gz +0 -0
- package/dist/7564.creaditor.bundle.js.gz +0 -0
- package/dist/7654.creaditor.bundle.js.gz +0 -0
- package/dist/767.creaditor.bundle.js +26 -70
- package/dist/767.creaditor.bundle.js.gz +0 -0
- package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/7789.creaditor.bundle.js.gz +0 -0
- package/dist/7838.creaditor.bundle.js.gz +0 -0
- package/dist/7918.creaditor.bundle.js.gz +0 -0
- package/dist/7937.creaditor.bundle.js.gz +0 -0
- package/dist/7997.creaditor.bundle.js.gz +0 -0
- package/dist/8042.creaditor.bundle.js.gz +0 -0
- package/dist/8064.creaditor.bundle.js.gz +0 -0
- package/dist/8141.creaditor.bundle.js.gz +0 -0
- package/dist/8173.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/8173.creaditor.bundle.js.gz +0 -0
- package/dist/8196.creaditor.bundle.js.gz +0 -0
- package/dist/823.creaditor.bundle.js.gz +0 -0
- package/dist/8250.creaditor.bundle.js.gz +0 -0
- package/dist/8251.creaditor.bundle.js.gz +0 -0
- package/dist/8299.creaditor.bundle.js.gz +0 -0
- package/dist/8315.creaditor.bundle.js.gz +0 -0
- package/dist/8443.creaditor.bundle.js.gz +0 -0
- package/dist/8516.creaditor.bundle.js.gz +0 -0
- package/dist/8533.creaditor.bundle.js.gz +0 -0
- package/dist/8547.creaditor.bundle.js.gz +0 -0
- package/dist/8570.creaditor.bundle.js.gz +0 -0
- package/dist/8646.creaditor.bundle.js +36 -37
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/8654.creaditor.bundle.js.gz +0 -0
- package/dist/8854.creaditor.bundle.js.gz +0 -0
- package/dist/8878.creaditor.bundle.js.gz +0 -0
- package/dist/8916.creaditor.bundle.js.gz +0 -0
- package/dist/8921.creaditor.bundle.js.gz +0 -0
- package/dist/898.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/898.creaditor.bundle.js.gz +0 -0
- package/dist/8983.creaditor.bundle.js.gz +0 -0
- package/dist/9041.creaditor.bundle.js.gz +0 -0
- package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/9158.creaditor.bundle.js.gz +0 -0
- package/dist/9250.creaditor.bundle.js.gz +0 -0
- package/dist/9386.creaditor.bundle.js.gz +0 -0
- package/dist/9431.creaditor.bundle.js.gz +0 -0
- package/dist/9453.creaditor.bundle.js.gz +0 -0
- package/dist/9570.creaditor.bundle.js.gz +0 -0
- package/dist/9694.creaditor.bundle.js.gz +0 -0
- package/dist/975.creaditor.bundle.js.gz +0 -0
- package/dist/976.creaditor.bundle.js.gz +0 -0
- package/dist/9986.creaditor.bundle.js.gz +0 -0
- package/dist/9990.creaditor.bundle.js.gz +0 -0
- package/dist/9994.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +173 -173
- package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/index.html.gz +0 -0
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.gz +0 -0
- package/dist/workbox-f3063069.js.gz +0 -0
- package/package.json +2 -2
- package/dist/1260.creaditor.bundle.js +0 -459
- package/dist/1260.creaditor.bundle.js.gz +0 -0
- package/dist/1393.creaditor.bundle.js +0 -1
- package/dist/1393.creaditor.bundle.js.gz +0 -0
- package/dist/1452.creaditor.bundle.js +0 -23
- package/dist/1452.creaditor.bundle.js.gz +0 -0
- package/dist/1565.creaditor.bundle.js +0 -1216
- package/dist/1565.creaditor.bundle.js.gz +0 -0
- package/dist/1756.creaditor.bundle.js +0 -1
- package/dist/1756.creaditor.bundle.js.gz +0 -0
- package/dist/1936.creaditor.bundle.js +0 -177
- package/dist/1936.creaditor.bundle.js.LICENSE.txt +0 -29
- package/dist/1936.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/1936.creaditor.bundle.js.gz +0 -0
- package/dist/2438.creaditor.bundle.js +0 -67
- package/dist/2438.creaditor.bundle.js.gz +0 -0
- package/dist/2834.creaditor.bundle.js +0 -14
- package/dist/2834.creaditor.bundle.js.LICENSE.txt +0 -5
- package/dist/2834.creaditor.bundle.js.gz +0 -0
- package/dist/307.creaditor.bundle.js +0 -23
- package/dist/307.creaditor.bundle.js.gz +0 -0
- package/dist/3095.creaditor.bundle.js +0 -194
- package/dist/3095.creaditor.bundle.js.gz +0 -0
- package/dist/365.creaditor.bundle.js +0 -26
- package/dist/365.creaditor.bundle.js.gz +0 -0
- package/dist/3778.creaditor.bundle.js +0 -1
- package/dist/3778.creaditor.bundle.js.gz +0 -0
- package/dist/3932.creaditor.bundle.js +0 -30
- package/dist/3932.creaditor.bundle.js.gz +0 -0
- package/dist/4217.creaditor.bundle.js +0 -105
- package/dist/4217.creaditor.bundle.js.gz +0 -0
- package/dist/453.creaditor.bundle.js.LICENSE.txt +0 -5
- package/dist/4569.creaditor.bundle.js +0 -887
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4739.creaditor.bundle.js +0 -1
- package/dist/4739.creaditor.bundle.js.gz +0 -0
- package/dist/4970.creaditor.bundle.js +0 -1316
- package/dist/4970.creaditor.bundle.js.gz +0 -0
- package/dist/5340.creaditor.bundle.js +0 -157
- package/dist/5340.creaditor.bundle.js.gz +0 -0
- package/dist/5428.creaditor.bundle.js +0 -23
- package/dist/5428.creaditor.bundle.js.gz +0 -0
- package/dist/5813.creaditor.bundle.js +0 -613
- package/dist/5813.creaditor.bundle.js.LICENSE.txt +0 -10
- package/dist/5813.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/5813.creaditor.bundle.js.gz +0 -0
- package/dist/6151.creaditor.bundle.js +0 -1
- package/dist/6151.creaditor.bundle.js.gz +0 -0
- package/dist/6459.creaditor.bundle.js +0 -23
- package/dist/6459.creaditor.bundle.js.gz +0 -0
- package/dist/6713.creaditor.bundle.js +0 -151
- package/dist/6713.creaditor.bundle.js.gz +0 -0
- package/dist/7051.creaditor.bundle.js +0 -162
- package/dist/7051.creaditor.bundle.js.gz +0 -0
- package/dist/763.creaditor.bundle.js +0 -1
- package/dist/763.creaditor.bundle.js.gz +0 -0
- package/dist/7759.creaditor.bundle.js +0 -25
- package/dist/7759.creaditor.bundle.js.gz +0 -0
- package/dist/8141.creaditor.bundle.js.LICENSE.txt +0 -5
- package/dist/8303.creaditor.bundle.js +0 -57
- package/dist/8303.creaditor.bundle.js.LICENSE.txt +0 -10
- package/dist/8303.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/8303.creaditor.bundle.js.gz +0 -0
- package/dist/8305.creaditor.bundle.js +0 -32
- package/dist/8305.creaditor.bundle.js.gz +0 -0
- package/dist/8386.creaditor.bundle.js +0 -1420
- package/dist/8386.creaditor.bundle.js.gz +0 -0
- package/dist/84702e107adede1a967468c78921d455.mp4 +0 -0
- package/dist/8478.creaditor.bundle.js +0 -1
- package/dist/8478.creaditor.bundle.js.gz +0 -0
- package/dist/8676.creaditor.bundle.js +0 -24
- package/dist/8676.creaditor.bundle.js.gz +0 -0
- package/dist/88.creaditor.bundle.js +0 -1
- package/dist/88.creaditor.bundle.js.gz +0 -0
- package/dist/8876.creaditor.bundle.js +0 -25
- package/dist/8876.creaditor.bundle.js.LICENSE.txt +0 -32
- package/dist/8876.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/8876.creaditor.bundle.js.gz +0 -0
- package/dist/9089.creaditor.bundle.js +0 -21
- package/dist/9089.creaditor.bundle.js.gz +0 -0
- package/dist/9162.creaditor.bundle.js +0 -24
- package/dist/9162.creaditor.bundle.js.gz +0 -0
- package/dist/9184.creaditor.bundle.js +0 -23
- package/dist/9184.creaditor.bundle.js.gz +0 -0
- package/dist/9193.creaditor.bundle.js +0 -1
- package/dist/9193.creaditor.bundle.js.gz +0 -0
- package/dist/9338.creaditor.bundle.js +0 -1
- package/dist/9338.creaditor.bundle.js.gz +0 -0
- package/dist/951.creaditor.bundle.js +0 -1
- package/dist/951.creaditor.bundle.js.gz +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8478],{98478(e,t,n){n.d(t,{default:()=>I});let s=!1;const o=e=>{{const{component:t,commands:n,helpers:o}=e;return{select:e=>{let{changeTab:t,tab:n}=e;"design"!==n.text&&t("design")},tabs:e=>{const t=[{text:"design"},{text:"list-settings"},{text:"settings"}];return t.forEach(t=>t.selected=t.selected=t.text===e),t},layout:e=>{let{tab:a,changeTab:i,tabs:r}=e;s=!1;return[{type:"heading",active:()=>"list-settings"===a.text,level:5,text:"autotype_info"},{type:"heading",level:3,text:"design",active:()=>"design"===a.text},{type:"typography",active:()=>"design"===a.text,bold:700===t.props.style.fontWeight,italic:"italic"===t.props.style.fontStyle,underline:"underline"===t.props.style.textDecoration,onChange:e=>{switch(e){case"bold":const e=700===t.props.style.fontWeight?400:700;n.execCommand("style",{fontWeight:e});break;case"italic":const s="italic"===t.props.style.fontStyle?"normal":"italic";n.execCommand("style",{fontStyle:s});break;case"underline":const o="underline"===t.props.style.textDecoration?"none":"underline";n.execCommand("style",{textDecoration:o})}}},{type:"fontFamily",active:()=>"design"===a.text,value:t.props.style.fontFamily,weight:!0,weightValue:t.props.style.fontWeight,onChange:e=>{const t=e.target.value;n.execCommand("style",{fontFamily:t})},onWeightChange:e=>{n.execCommand("style",{fontWeight:e.detail.value})}},{type:"divider",active:()=>"design"===a.text},{type:"colorpicker",active:()=>"design"===a.text,title:"color",value:t.props.style.color,onChange:e=>{const t=e.target.value;n.execCommand("style",{color:t})}},{type:"fontSize",active:()=>"design"===a.text,title:"size",max:150,min:8,device:e=>{const n=e.target.device;e.target.value="phone"===n?parseInt(t.props?.breakpoints?.sm?.style?.fontSize)||14:parseInt(t.props.style.fontSize)||14},value:parseInt(t.props.style.fontSize)||14,onInput:e=>{const t=e.target.value;"phone"===e.target.device?n.execCommand("breakpoints",e=>{const n=e.props.breakpoints?.sm||{};return{sm:o.deepMerge(n,{style:{fontSize:t+"px"}})}}):n.execCommand("style",{fontSize:t+"px"})}},{type:"slider",max:5e3,min:0,title:"sleepBetween",value:parseInt(t.props.sleepBetween)||1e3,active:()=>"list-settings"===a.text,onInput:e=>{const t=e.target.value;n.execCommand("sleepBetween",parseInt(t))}},{type:"heading",active:()=>"list-settings"===a.text,level:6,text:"how_much_should_wait_between_each_item"},{type:"slider",active:()=>"list-settings"===a.text,max:5e3,min:0,title:"speed",value:parseInt(t.props.speed)||50,active:()=>"list-settings"===a.text,onInput:e=>{const t=e.target.value;n.execCommand("speed",parseInt(t))}}]}}}},a=e=>{let{helpers:t,template:n,reRender:s}=e;return{set:(e,n,o)=>{switch(n){case"style":const a={...e[n]};return e[n]=t.deepMerge(a,o),s(),!0;case"size":case"text":return e[n]=o,s(),!0;case"data":Array.isArray(o)&&(e[n]=o,s())}return!0}}};var i=n(25873),r=n(81318),l=n(1366),c=n(67291),p=n(28396);let d;var u=n(72591),m=n.n(u),y=n(88639),g=n.n(y),h=n(88128),A=n.n(h),C=n(30855),x=n.n(C),v=n(93051),f=n.n(v),b=n(48135),k={};k.setAttributes=x(),k.insert=A().bind(null,"head"),k.domAPI=g(),k.insertStyleElement=f();m()(b.A,k);const w=b.A&&b.A.locals?b.A.locals:void 0;var E=n(78119),H={};H.setAttributes=x(),H.insert=A().bind(null,"head"),H.domAPI=g(),H.insertStyleElement=f();m()(E.A,H);const S=E.A&&E.A.locals?E.A.locals:void 0,I=()=>{const e="autotype";return{name:e,menu:t=>{let{Compose:n}=t;return new n(()=>({type:e,props:{style:{},speed:50,sleepBetween:1e3,text:{type:"doc",content:[{type:"paragraph",content:[{type:"text",text:"Hello World"}]}]}}}),{group:"elements",name:e,puzzle:['<svg width="46" height="32" viewBox="0 0 46 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M17.44 31L14.688 23.928H5.632L2.912 31H0L8.928 8.056H11.52L20.416 31H17.44ZM11.264 14.456C11.2 14.2853 11.0933 13.976 10.944 13.528C10.7947 13.08 10.6453 12.6213 10.496 12.152C10.368 11.6613 10.2613 11.288 10.176 11.032C10.0693 11.4587 9.952 11.896 9.824 12.344C9.71733 12.7707 9.6 13.1653 9.472 13.528C9.36533 13.8907 9.26933 14.2 9.184 14.456L6.592 21.368H13.824L11.264 14.456ZM30.0695 8.152C31.9682 8.152 33.5575 8.33333 34.8375 8.696C36.1388 9.05867 37.1095 9.656 37.7495 10.488C38.4108 11.32 38.7415 12.4293 38.7415 13.816C38.7415 14.712 38.5708 15.512 38.2295 16.216C37.9095 16.8987 37.4188 17.4747 36.7575 17.944C36.1175 18.392 35.3282 18.7013 34.3895 18.872V19.032C35.3495 19.1813 36.2135 19.4587 36.9815 19.864C37.7708 20.2693 38.3895 20.8453 38.8375 21.592C39.2855 22.3387 39.5095 23.3093 39.5095 24.504C39.5095 25.8907 39.1895 27.0747 38.5495 28.056C37.9095 29.016 36.9922 29.752 35.7975 30.264C34.6242 30.7547 33.2162 31 31.5735 31H23.5415V8.152H30.0695ZM30.6455 17.88C32.6082 17.88 33.9522 17.5707 34.6775 16.952C35.4028 16.312 35.7655 15.3733 35.7655 14.136C35.7655 12.8773 35.3175 11.9813 34.4215 11.448C33.5468 10.8933 32.1388 10.616 30.1975 10.616H26.4215V17.88H30.6455ZM26.4215 20.28V28.568H31.0295C33.0562 28.568 34.4642 28.1733 35.2535 27.384C36.0428 26.5947 36.4375 25.56 36.4375 24.28C36.4375 23.4693 36.2562 22.7653 35.8935 22.168C35.5522 21.5707 34.9655 21.112 34.1335 20.792C33.3228 20.4507 32.2135 20.28 30.8055 20.28H26.4215Z" fill="black"/>\n<rect x="42" y="1" width="1" height="30" fill="black"/>\n<rect x="39" width="7" height="1" fill="black"/>\n<rect x="39" y="31" width="7" height="1" fill="black"/>\n</svg>\n'],tags:[e,"text"],index:null})},create:t=>{const{createElement:n,compose:s,helpers:u}=t,m=(s.editor,e=>{for(const t in e.style)if(Object.hasOwnProperty.call(e.style,t)){const n=e.style[t];y.style[t]=n}y.classList.contains("autotype-selected")||A.chain().focus().setContent(e.text).run()}),y=document.createElement("div");y.classList.add(S.autoTypeEditing);const g=document.createElement("div"),h=document.createElement("div");h.classList.add(w.caret);const A=(e=>{let{content:t,element:n}=e;return d=new r.KE({element:n,extensions:[l.A,c.A,p.A],editorProps:{},injectCSS:!1,content:t}),d})({element:h,content:s.props.text});A.on("focus",()=>{y.classList.add("autotype-selected")}),A.on("blur",()=>{y.classList.remove("autotype-selected")}),A.on("update",e=>{let{editor:t,transaction:n}=e;if(0===n.steps.length)return;(e=>{s.editor.store().execCommands([{key:"text",value:JSON.parse(JSON.stringify(e))}])})(A.getJSON())}),y.append(g,h);i.H(g);return m(s.props),n({name:e,id:s.id,template:y,resizeable:!0,handleBar:!0,draggable:{group:"element"},defaultProps:{},validator:a({template:y,helpers:u,reRender:()=>{m(s.props)}}),schema:s.schema,onSelect:e=>{y.classList.add(e)},onDeselect:e=>{y.classList.remove(e)},elementProps:s,remove:()=>{y.remove()},createEditor:o})}}}},78119(e,t,n){n.d(t,{A:()=>r});var s=n(82001),o=n.n(s),a=n(40935),i=n.n(a)()(o());i.push([e.id,".autoTypeEditing {\n background-color: black;\n}","",{version:3,sources:["webpack://./../web-editors/autotype-editor-component/src/index.css"],names:[],mappings:"AAAA;EACE,uBAAuB;AACzB",sourcesContent:[".autoTypeEditing {\n background-color: black;\n}"],sourceRoot:""}]);const r=i},48135(e,t,n){n.d(t,{A:()=>r});var s=n(82001),o=n.n(s),a=n(40935),i=n.n(a)()(o());i.push([e.id,'\n.yOO_P1NnvBQ705I1zyUA::after {\n content: "";\n width: 5px;\n height: 20px;\n background: #ec7fff;\n display: inline-block;\n animation: p0oX1Sqo4sKJHs_I1qOK 1.5s steps(2) infinite;\n}\n\n@keyframes p0oX1Sqo4sKJHs_I1qOK {\n 0% {\n opacity: 0;\n }\n}\n',"",{version:3,sources:["webpack://./../web-editors/autotype-editor-component/src/styles.module.css"],names:[],mappings:";AACA;EACE,WAAW;EACX,UAAU;EACV,YAAY;EACZ,mBAAmB;EACnB,qBAAqB;EACrB,sDAA8C;AAChD;;AAEA;EACE;IACE,UAAU;EACZ;AACF",sourcesContent:['\n.caret::after {\n content: "";\n width: 5px;\n height: 20px;\n background: #ec7fff;\n display: inline-block;\n animation: cursor-blink 1.5s steps(2) infinite;\n}\n\n@keyframes cursor-blink {\n 0% {\n opacity: 0;\n }\n}\n'],sourceRoot:""}]),i.locals={caret:"yOO_P1NnvBQ705I1zyUA","cursor-blink":"p0oX1Sqo4sKJHs_I1qOK"};const r=i},67291(e,t,n){n.d(t,{A:()=>o});var s=n(81318);const o=s.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:e}){return["p",(0,s.KV)(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}})}}]);
|
|
Binary file
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8676],{48676(t,i,e){e.r(i),e.d(i,{ListSettingsLineIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
viewBox="0 0 24 24"
|
|
4
|
-
style="${this.iconStyle}"
|
|
5
|
-
width="${this.width}"
|
|
6
|
-
height="${this.height}"
|
|
7
|
-
>
|
|
8
|
-
<path fill="none" d="M0 0h24v24H0z" />
|
|
9
|
-
<path
|
|
10
|
-
fill="currentColor"
|
|
11
|
-
d="M2 18h7v2H2v-2zm0-7h9v2H2v-2zm0-7h20v2H2V4zm18.674 9.025l1.156-.391 1 1.732-.916.805a4.017 4.017 0 0 1 0 1.658l.916.805-1 1.732-1.156-.391c-.41.37-.898.655-1.435.83L19 21h-2l-.24-1.196a3.996 3.996 0 0 1-1.434-.83l-1.156.392-1-1.732.916-.805a4.017 4.017 0 0 1 0-1.658l-.916-.805 1-1.732 1.156.391c.41-.37.898-.655 1.435-.83L17 11h2l.24 1.196c.536.174 1.024.46 1.434.83zM18 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"
|
|
12
|
-
/>
|
|
13
|
-
</svg>`}}s.styles=h.AH`
|
|
14
|
-
:host {
|
|
15
|
-
display: inherit;
|
|
16
|
-
--cdtr-icon-width: 20px;
|
|
17
|
-
--cdtr-icon-height: 20px;
|
|
18
|
-
}
|
|
19
|
-
svg {
|
|
20
|
-
width: var(--cdtr-icon-width);
|
|
21
|
-
height: var(--cdtr-icon-height);
|
|
22
|
-
color: var(--cdtr-icon-color);
|
|
23
|
-
}
|
|
24
|
-
`,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-list-settings-icon",s)}}]);
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[88],{90088(e,t,n){n.d(t,{default:()=>b});const o=e=>{{const{component:t,commands:n,helpers:o}=e,s=t.parent("col");return{select:e=>{let{changeTab:t,tab:n}=e},tabs:e=>{const t=[{text:"design"},{text:"animations"},{text:"settings"}];return t.forEach(t=>t.selected=t.selected=t.text===e),t},layout:e=>{let{tab:r,changeTab:i,tabs:a}=e;const l=[{type:"input",title:"add_urlAddress_from_media_site",active:()=>"design"===r.text,value:t.props.url||"",onChange:e=>{let t=e.target.value;if(-1!==t.indexOf("youtube.com/shorts/")){const e=t.split("/");e.length>0&&(t=`https://youtu.be/${e[e.length-1]}`)}n.execCommand("url",t)}},{type:"divider",active:()=>"design"===r.text},{type:"fontSize",title:"size",min:10,active:()=>"design"===r.text,max:s?.element?.offsetWidth,value:parseInt(t.props.style.width),device:e=>{if("phone"===e.target.device){const n=t.props?.breakpoints?.sm?.style?.width||t.props.style.width;e.target.value=parseInt(n)}else e.target.value=parseInt(t.props.style.width)},onInput:e=>{const t=e.target.value;"phone"===e.target.device?n.execCommand("breakpoints",e=>{const n=e.props.breakpoints?.sm||{};return{sm:o.deepMerge(n,{style:{width:t+"px",height:e.props.isCircle?t+"px":"auto"}})}}):n.execCommand("style",e=>({width:t+"px",height:e.props.isCircle?t+"px":"auto"}))}},{type:"divider"},{type:"divider",active:()=>"design"===r.text}];return l}}}},s=()=>({set:(e,t,n)=>{if("y"===t)return e[t]=n,!0}});var r=n(72591),i=n.n(r),a=n(88639),l=n.n(a),d=n(88128),p=n.n(d),c=n(30855),u=n.n(c),h=n(93051),g=n.n(h),A=n(35907),m={};m.setAttributes=u(),m.insert=p().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=g();i()(A.A,m);const C=A.A&&A.A.locals?A.A.locals:void 0,v="anchor";const b=function(){return{name:v,create:e=>{const{createElement:t,compose:n,helpers:r}=e,{arrayToString:i,mergeDiff:a}=r,l=document.createElement("div");l.innerHTML='<svg width="30" height="30" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2.04938 11H7V13H4.06189C4.51314 16.6187 7.38128 19.4869 11 19.9381V9.87398C9.27477 9.42994 8 7.86384 8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6C16 7.86384 14.7252 9.42994 13 9.87398V19.9381C16.6187 19.4869 19.4869 16.6187 19.9381 13H17V11H21.9506C21.9833 11.3289 22 11.6625 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 11.6625 2.01672 11.3289 2.04938 11ZM12 8C13.1046 8 14 7.10457 14 6C14 4.89543 13.1046 4 12 4C10.8954 4 10 4.89543 10 6C10 7.10457 10.8954 8 12 8Z"></path></svg>',l.classList.add(C.root);return t({name:v,id:n.id,template:l,defaultProps:{},draggable:{group:"block",direction:"top,bottom"},droppable:{group:"block"},handleBar:!0,validator:s(),schema:n.schema,onSelect:e=>{},onDeselect:e=>{},elementProps:n,remove:()=>{l.remove()},createEditor:o})}}}},35907(e,t,n){n.d(t,{A:()=>a});var o=n(82001),s=n.n(o),r=n(40935),i=n.n(r)()(s());i.push([e.id,".aeBTxGErq3loA4iMaQkf {\n position: relative;\n width: 100%;\n background-color: rgb(233, 233, 233);\n height: 100%;\n padding:10px;\n}\n.aeBTxGErq3loA4iMaQkf svg{\n display: block;\n margin: auto;\n}","",{version:3,sources:["webpack://./../web-editors/anchor-editor-component/lib/style.module.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,WAAW;EACX,oCAAoC;EACpC,YAAY;EACZ,YAAY;AACd;AACA;EACE,cAAc;EACd,YAAY;AACd",sourcesContent:[".root {\n position: relative;\n width: 100%;\n background-color: rgb(233, 233, 233);\n height: 100%;\n padding:10px;\n}\n.root svg{\n display: block;\n margin: auto;\n}"],sourceRoot:""}]),i.locals={root:"aeBTxGErq3loA4iMaQkf"};const a=i}}]);
|
|
Binary file
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 8876.creaditor.bundle.js.LICENSE.txt */
|
|
2
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8876],{68876(t,e,i){i.d(e,{r:()=>k,N:()=>N});i(69130);var s=i(53874);let n;const o={properties:{sizingTarget:{type:Object,value:function(){return this}},fitInto:{type:Object,value:window},noOverlap:{type:Boolean},positionTarget:{type:Element},horizontalAlign:{type:String},verticalAlign:{type:String},dynamicAlign:{type:Boolean},horizontalOffset:{type:Number,value:0,notify:!0},verticalOffset:{type:Number,value:0,notify:!0},autoFitOnAttach:{type:Boolean,value:!1},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_fitInfo:{type:Object}},get _fitWidth(){return this.fitInto===window?this.fitInto.innerWidth:this.fitInto.getBoundingClientRect().width},get _fitHeight(){return this.fitInto===window?this.fitInto.innerHeight:this.fitInto.getBoundingClientRect().height},get _fitLeft(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().left},get _fitTop(){return this.fitInto===window?0:this.fitInto.getBoundingClientRect().top},get _defaultPositionTarget(){var t=(0,s.tT)(this).parentNode;return t&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t=t.host),t},get _localeHorizontalAlign(){if(this._isRTL){if("right"===this.horizontalAlign)return"left";if("left"===this.horizontalAlign)return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){return void 0===this._memoizedIsRTL&&(this._memoizedIsRTL="rtl"==window.getComputedStyle(this).direction),this._memoizedIsRTL},attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget,this.autoFitOnAttach&&("none"===window.getComputedStyle(this).display?setTimeout(function(){this.fit()}.bind(this)):(window.ShadyDOM&&ShadyDOM.flush(),this.fit()))},detached:function(){this.__deferredFit&&(clearTimeout(this.__deferredFit),this.__deferredFit=null)},fit:function(){this.position(),this.constrain(),this.center()},_discoverInfo:function(){if(!this._fitInfo){var t=window.getComputedStyle(this),e=window.getComputedStyle(this.sizingTarget);this._fitInfo={inlineStyle:{top:this.style.top||"",left:this.style.left||"",position:this.style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||""},positionedBy:{vertically:"auto"!==t.top?"top":"auto"!==t.bottom?"bottom":null,horizontally:"auto"!==t.left?"left":"auto"!==t.right?"right":null},sizedBy:{height:"none"!==e.maxHeight,width:"none"!==e.maxWidth,minWidth:parseInt(e.minWidth,10)||0,minHeight:parseInt(e.minHeight,10)||0},margin:{top:parseInt(t.marginTop,10)||0,right:parseInt(t.marginRight,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0}}}},resetFit:function(){var t=this._fitInfo||{};for(var e in t.sizerInlineStyle)this.sizingTarget.style[e]=t.sizerInlineStyle[e];for(var e in t.inlineStyle)this.style[e]=t.inlineStyle[e];this._fitInfo=null},refit:function(){var t=this.sizingTarget.scrollLeft,e=this.sizingTarget.scrollTop;this.resetFit(),this.fit(),this.sizingTarget.scrollLeft=t,this.sizingTarget.scrollTop=e},position:function(){if(!this.__shouldPosition)return;this._discoverInfo(),window.ShadyDOM&&window.ShadyDOM.flush(),this.style.position="fixed",this.sizingTarget.style.boxSizing="border-box",this.style.left="0px",this.style.top="0px";var t=this.getBoundingClientRect(),e=this.__getNormalizedRect(this.positionTarget),i=this.__getNormalizedRect(this.fitInto);let s,o,r,a;this.expandSizingTargetForScrollbars&&(s=this.sizingTarget.offsetWidth,o=this.sizingTarget.offsetHeight,r=this.sizingTarget.clientWidth,a=this.sizingTarget.clientHeight);var l=this._fitInfo.margin,h={width:t.width+l.left+l.right,height:t.height+l.top+l.bottom},d=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,h,t,e,i),c=d.left+l.left,f=d.top+l.top,u=Math.min(i.right-l.right,c+t.width),_=Math.min(i.bottom-l.bottom,f+t.height);c=Math.max(i.left+l.left,Math.min(c,u-this._fitInfo.sizedBy.minWidth)),f=Math.max(i.top+l.top,Math.min(f,_-this._fitInfo.sizedBy.minHeight));const p=Math.max(u-c,this._fitInfo.sizedBy.minWidth),g=Math.max(_-f,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=p+"px",this.sizingTarget.style.maxHeight=g+"px";const v=c-t.left,y=f-t.top;if(this.style.left=`${v}px`,this.style.top=`${y}px`,this.expandSizingTargetForScrollbars){const t=this.sizingTarget.offsetHeight,e=t-this.sizingTarget.clientHeight-(o-a);if(e>0){const s=i.height-l.top-l.bottom,n=Math.min(s,g+e);this.sizingTarget.style.maxHeight=`${n}px`;const o=this.sizingTarget.offsetHeight,r=o-t;let a;"top"===d.verticalAlign?a=y:"middle"===d.verticalAlign?a=y-r/2:"bottom"===d.verticalAlign&&(a=y-r),a=Math.max(i.top+l.top,Math.min(a,i.bottom-l.bottom-o)),this.style.top=`${a}px`}const h=this.sizingTarget.offsetWidth,c=h-this.sizingTarget.clientWidth-(s-r);if(c>0){const t=(()=>{if(void 0!==n)return n;const t=document.createElement("div");Object.assign(t.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"});const e=document.createElement("div");return e.style.width="200px",e.style.height="200px",t.appendChild(e),document.body.appendChild(t),n=Math.abs(t.offsetWidth-100)>1?t.offsetWidth-t.clientWidth:0,document.body.removeChild(t),n})(),e=i.width-l.left-l.right,s=Math.min(e,p+c-t);this.sizingTarget.style.maxWidth=`${s}px`;const o=this.sizingTarget.offsetWidth+t,r=o-h;let a;"left"===d.horizontalAlign?a=v:"center"===d.horizontalAlign?a=v-r/2:"right"===d.horizontalAlign&&(a=v-r),a=Math.max(i.left+l.left,Math.min(a,i.right-l.right-o)),this.style.left=`${a}px`}}},constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var t=this._fitInfo;t.positionedBy.vertically||(this.style.position="fixed",this.style.top="0px"),t.positionedBy.horizontally||(this.style.position="fixed",this.style.left="0px"),this.sizingTarget.style.boxSizing="border-box";var e=this.getBoundingClientRect();t.sizedBy.height||this.__sizeDimension(e,t.positionedBy.vertically,"top","bottom","Height"),t.sizedBy.width||this.__sizeDimension(e,t.positionedBy.horizontally,"left","right","Width")}},_sizeDimension:function(t,e,i,s,n){this.__sizeDimension(t,e,i,s,n)},__sizeDimension:function(t,e,i,s,n){var o=this._fitInfo,r=this.__getNormalizedRect(this.fitInto),a="Width"===n?r.width:r.height,l=e===s,h=l?a-t[s]:t[i],d=o.margin[l?i:s],c="offset"+n,f=this[c]-this.sizingTarget[c];this.sizingTarget.style["max"+n]=a-d-h-f+"px"},center:function(){if(!this.__shouldPosition){this._discoverInfo();var t=this._fitInfo.positionedBy;if(!t.vertically||!t.horizontally){this.style.position="fixed",t.vertically||(this.style.top="0px"),t.horizontally||(this.style.left="0px");var e=this.getBoundingClientRect(),i=this.__getNormalizedRect(this.fitInto);if(!t.vertically){var s=i.top-e.top+(i.height-e.height)/2;this.style.top=s+"px"}if(!t.horizontally){var n=i.left-e.left+(i.width-e.width)/2;this.style.left=n+"px"}}}},__getNormalizedRect:function(t){return t===document.documentElement||t===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:t.getBoundingClientRect()},__getOffscreenArea:function(t,e,i){var s=Math.min(0,t.top)+Math.min(0,i.bottom-(t.top+e.height)),n=Math.min(0,t.left)+Math.min(0,i.right-(t.left+e.width));return Math.abs(s)*e.width+Math.abs(n)*e.height},__getPosition:function(t,e,i,s,n,o){var r,a=[{verticalAlign:"top",horizontalAlign:"left",top:n.top+this.verticalOffset,left:n.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:n.top+this.verticalOffset,left:n.right-i.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:n.bottom-i.height-this.verticalOffset,left:n.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:n.bottom-i.height-this.verticalOffset,left:n.right-i.width-this.horizontalOffset}];if(this.noOverlap){for(var l=0,h=a.length;l<h;l++){var d={};for(var c in a[l])d[c]=a[l][c];a.push(d)}a[0].top=a[1].top+=n.height,a[2].top=a[3].top-=n.height,a[4].left=a[6].left+=n.width,a[5].left=a[7].left-=n.width}e="auto"===e?null:e,(t="auto"===t?null:t)&&"center"!==t||(a.push({verticalAlign:"top",horizontalAlign:"center",top:n.top+this.verticalOffset+(this.noOverlap?n.height:0),left:n.left-s.width/2+n.width/2+this.horizontalOffset}),a.push({verticalAlign:"bottom",horizontalAlign:"center",top:n.bottom-i.height-this.verticalOffset-(this.noOverlap?n.height:0),left:n.left-s.width/2+n.width/2+this.horizontalOffset})),e&&"middle"!==e||(a.push({verticalAlign:"middle",horizontalAlign:"left",top:n.top-s.height/2+n.height/2+this.verticalOffset,left:n.left+this.horizontalOffset+(this.noOverlap?n.width:0)}),a.push({verticalAlign:"middle",horizontalAlign:"right",top:n.top-s.height/2+n.height/2+this.verticalOffset,left:n.right-i.width-this.horizontalOffset-(this.noOverlap?n.width:0)})),"middle"===e&&"center"===t&&a.push({verticalAlign:"middle",horizontalAlign:"center",top:n.top-s.height/2+n.height/2+this.verticalOffset,left:n.left-s.width/2+n.width/2+this.horizontalOffset});for(l=0;l<a.length;l++){var f=a[l],u=f.verticalAlign===e,_=f.horizontalAlign===t;if(!this.dynamicAlign&&!this.noOverlap&&u&&_){r=f;break}var p=(!e||u)&&(!t||_);if(this.dynamicAlign||p){if(f.offscreenArea=this.__getOffscreenArea(f,i,o),0===f.offscreenArea&&p){r=f;break}r=r||f;var g=f.offscreenArea-r.offscreenArea;(g<0||0===g&&(u||_))&&(r=f)}}return r}};var r=i(12822),a=new Set;const l={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(a.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(t){this.resizerShouldNotify(t)&&this._notifyDescendant(t)},this),this._fireResize())},assignParentResizable:function(t){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=t,t&&-1===t._interestedResizables.indexOf(this)&&(t._interestedResizables.push(this),t._subscribeIronResize(this))},stopResizeNotificationsFor:function(t){var e=this._interestedResizables.indexOf(t);e>-1&&(this._interestedResizables.splice(e,1),this._unsubscribeIronResize(t))},_subscribeIronResize:function(t){t.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(t){t.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(t){return!0},_onDescendantIronResize:function(t){this._notifyingDescendant?t.stopPropagation():r.sv||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(t){var e=(0,s.tT)(t).rootTarget;e!==this&&(e.assignParentResizable(this),this._notifyDescendant(e),t.stopPropagation())},_parentResizableChanged:function(t){t&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(t){this.isAttached&&(this._notifyingDescendant=!0,t.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var t=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function e(){document.removeEventListener("readystatechange",e),t()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(t){t!==this&&t._findParent()},this):(a.forEach(function(t){t!==this&&t._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?a.delete(this):a.add(this)}};var h=Element.prototype,d=h.matches||h.matchesSelector||h.mozMatchesSelector||h.msMatchesSelector||h.oMatchesSelector||h.webkitMatchesSelector;const c=new class{getTabbableNodes(t){var e=[];return this._collectTabbableNodes(t,e)?this._sortByTabIndex(e):e}isFocusable(t){return d.call(t,"input, select, textarea, button, object")?d.call(t,":not([disabled])"):d.call(t,"a[href], area[href], iframe, [tabindex], [contentEditable]")}isTabbable(t){return this.isFocusable(t)&&d.call(t,':not([tabindex="-1"])')&&this._isVisible(t)}_normalizedTabIndex(t){if(this.isFocusable(t)){var e=t.getAttribute("tabindex")||0;return Number(e)}return-1}_collectTabbableNodes(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var i=t;if(!this._isVisible(i))return!1;var n,o=this._normalizedTabIndex(i),r=o>0;o>=0&&e.push(i),n="content"===i.localName||"slot"===i.localName?(0,s.tT)(i).getDistributedNodes():(0,s.tT)(i.root||i).children;for(var a=0;a<n.length;a++)r=this._collectTabbableNodes(n[a],e)||r;return r}_isVisible(t){var e=t.style;return"hidden"!==e.visibility&&"none"!==e.display&&("hidden"!==(e=window.getComputedStyle(t)).visibility&&"none"!==e.display)}_sortByTabIndex(t){var e=t.length;if(e<2)return t;var i=Math.ceil(e/2),s=this._sortByTabIndex(t.slice(0,i)),n=this._sortByTabIndex(t.slice(i));return this._mergeSortByTabIndex(s,n)}_mergeSortByTabIndex(t,e){for(var i=[];t.length>0&&e.length>0;)this._hasLowerTabOrder(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}_hasLowerTabOrder(t,e){var i=Math.max(t.tabIndex,0),s=Math.max(e.tabIndex,0);return 0===i||0===s?s>i:i>s}};var f=i(95586),u=i(47351);(0,f.b)({_template:u.q`
|
|
3
|
-
<style>
|
|
4
|
-
:host {
|
|
5
|
-
position: fixed;
|
|
6
|
-
top: 0;
|
|
7
|
-
left: 0;
|
|
8
|
-
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
|
-
background-color: var(--iron-overlay-backdrop-background-color, #000);
|
|
11
|
-
opacity: 0;
|
|
12
|
-
transition: opacity 0.2s;
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
@apply --iron-overlay-backdrop;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host(.opened) {
|
|
18
|
-
opacity: var(--iron-overlay-backdrop-opacity, 0.6);
|
|
19
|
-
pointer-events: auto;
|
|
20
|
-
@apply --iron-overlay-backdrop-opened;
|
|
21
|
-
}
|
|
22
|
-
</style>
|
|
23
|
-
|
|
24
|
-
<slot></slot>
|
|
25
|
-
`,is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&(0,s.tT)(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||(0,s.tT)(this.parentNode).removeChild(this)},_onTransitionend:function(t){t&&t.target===this&&this.complete()},_openedChanged:function(t){if(t)this.prepare();else{var e=window.getComputedStyle(this);"0s"!==e.transitionDuration&&0!=e.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}});var _=i(35915),p=i(15055);const g=new class{constructor(){this._overlays=[],this._minimumZ=101,this._backdropElement=null,p.ch(document.documentElement,"tap",function(){}),document.addEventListener("tap",this._onCaptureClick.bind(this),!0),document.addEventListener("focus",this._onCaptureFocus.bind(this),!0),document.addEventListener("keydown",this._onCaptureKeyDown.bind(this),!0)}get backdropElement(){return this._backdropElement||(this._backdropElement=document.createElement("iron-overlay-backdrop")),this._backdropElement}get deepActiveElement(){var t=document.activeElement;for(t&&t instanceof Element!=!1||(t=document.body);t.root&&(0,s.tT)(t.root).activeElement;)t=(0,s.tT)(t.root).activeElement;return t}_bringOverlayAtIndexToFront(t){var e=this._overlays[t];if(e){var i=this._overlays.length-1,s=this._overlays[i];if(s&&this._shouldBeBehindOverlay(e,s)&&i--,!(t>=i)){var n=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(e)<=n&&this._applyOverlayZ(e,n);t<i;)this._overlays[t]=this._overlays[t+1],t++;this._overlays[i]=e}}}addOrRemoveOverlay(t){t.opened?this.addOverlay(t):this.removeOverlay(t)}addOverlay(t){var e=this._overlays.indexOf(t);if(e>=0)return this._bringOverlayAtIndexToFront(e),void this.trackBackdrop();var i=this._overlays.length,s=this._overlays[i-1],n=Math.max(this._getZ(s),this._minimumZ),o=this._getZ(t);if(s&&this._shouldBeBehindOverlay(t,s)){this._applyOverlayZ(s,n),i--;var r=this._overlays[i-1];n=Math.max(this._getZ(r),this._minimumZ)}o<=n&&this._applyOverlayZ(t,n),this._overlays.splice(i,0,t),this.trackBackdrop()}removeOverlay(t){var e=this._overlays.indexOf(t);-1!==e&&(this._overlays.splice(e,1),this.trackBackdrop())}currentOverlay(){var t=this._overlays.length-1;return this._overlays[t]}currentOverlayZ(){return this._getZ(this.currentOverlay())}ensureMinimumZ(t){this._minimumZ=Math.max(this._minimumZ,t)}focusOverlay(){var t=this.currentOverlay();t&&t._applyFocus()}trackBackdrop(){var t=this._overlayWithBackdrop();(t||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(t)-1,this.backdropElement.opened=!!t,this.backdropElement.prepare())}getBackdrops(){for(var t=[],e=0;e<this._overlays.length;e++)this._overlays[e].withBackdrop&&t.push(this._overlays[e]);return t}backdropZ(){return this._getZ(this._overlayWithBackdrop())-1}_overlayWithBackdrop(){for(var t=this._overlays.length-1;t>=0;t--)if(this._overlays[t].withBackdrop)return this._overlays[t]}_getZ(t){var e=this._minimumZ;if(t){var i=Number(t.style.zIndex||window.getComputedStyle(t).zIndex);i==i&&(e=i)}return e}_setZ(t,e){t.style.zIndex=e}_applyOverlayZ(t,e){this._setZ(t,e+2)}_overlayInPath(t){t=t||[];for(var e=0;e<t.length;e++)if(t[e]._manager===this)return t[e]}_onCaptureClick(t){var e=this._overlays.length-1;if(-1!==e)for(var i,n=(0,s.tT)(t).path;(i=this._overlays[e])&&this._overlayInPath(n)!==i&&(i._onCaptureClick(t),i.allowClickThrough);)e--}_onCaptureFocus(t){var e=this.currentOverlay();e&&e._onCaptureFocus(t)}_onCaptureKeyDown(t){var e=this.currentOverlay();e&&(_.D.keyboardEventMatchesKeys(t,"esc")?e._onCaptureEsc(t):_.D.keyboardEventMatchesKeys(t,"tab")&&e._onCaptureTab(t))}_shouldBeBehindOverlay(t,e){return!t.alwaysOnTop&&e.alwaysOnTop}};var v,y,m={pageX:0,pageY:0},b=null,z=[],T=["wheel","mousewheel","DOMMouseScroll","touchstart","touchmove"];function w(t){x.indexOf(t)>=0||(0===x.length&&function(){v=v||A.bind(void 0);for(var t=0,e=T.length;t<e;t++)document.addEventListener(T[t],v,{capture:!0,passive:!1})}(),x.push(t),y=x[x.length-1],R=[],C=[])}function O(t){var e=x.indexOf(t);-1!==e&&(x.splice(e,1),y=x[x.length-1],R=[],C=[],0===x.length&&function(){for(var t=0,e=T.length;t<e;t++)document.removeEventListener(T[t],v,{capture:!0,passive:!1})}())}const x=[];let R=null,C=null;function A(t){if(t.cancelable&&function(t){var e=(0,s.tT)(t).rootTarget;"touchmove"!==t.type&&b!==e&&(b=e,z=function(t){for(var e=[],i=t.indexOf(y),s=0;s<=i;s++)if(t[s].nodeType===Node.ELEMENT_NODE){var n=t[s],o=n.style;"scroll"!==o.overflow&&"auto"!==o.overflow&&(o=window.getComputedStyle(n)),"scroll"!==o.overflow&&"auto"!==o.overflow||e.push(n)}return e}((0,s.tT)(t).path));if(!z.length)return!0;if("touchstart"===t.type)return!1;var i=function(t){var e={deltaX:t.deltaX,deltaY:t.deltaY};if("deltaX"in t);else if("wheelDeltaX"in t&&"wheelDeltaY"in t)e.deltaX=-t.wheelDeltaX,e.deltaY=-t.wheelDeltaY;else if("wheelDelta"in t)e.deltaX=0,e.deltaY=-t.wheelDelta;else if("axis"in t)e.deltaX=1===t.axis?t.detail:0,e.deltaY=2===t.axis?t.detail:0;else if(t.targetTouches){var i=t.targetTouches[0];e.deltaX=m.pageX-i.pageX,e.deltaY=m.pageY-i.pageY}return e}(t);return!function(t,e,i){if(!e&&!i)return;for(var s=Math.abs(i)>=Math.abs(e),n=0;n<t.length;n++){var o=t[n];if(s?i<0?o.scrollTop>0:o.scrollTop<o.scrollHeight-o.clientHeight:e<0?o.scrollLeft>0:o.scrollLeft<o.scrollWidth-o.clientWidth)return o}}(z,i.deltaX,i.deltaY)}(t)&&t.preventDefault(),t.targetTouches){var e=t.targetTouches[0];m.pageX=e.pageX,m.pageY=e.pageY}}const N={properties:{opened:{observer:"_openedChanged",type:Boolean,value:!1,notify:!0},canceled:{observer:"_canceledChanged",readOnly:!0,type:Boolean,value:!1},withBackdrop:{observer:"_withBackdropChanged",type:Boolean},noAutoFocus:{type:Boolean,value:!1},noCancelOnEscKey:{type:Boolean,value:!1},noCancelOnOutsideClick:{type:Boolean,value:!1},closingReason:{type:Object},restoreFocusOnClose:{type:Boolean,value:!1},allowClickThrough:{type:Boolean},alwaysOnTop:{type:Boolean},scrollAction:{type:String},_manager:{type:Object,value:g},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){return this._focusedChild||(0,s.tT)(this).querySelector("[autofocus]")||this},get _focusableNodes(){return c.getTabbableNodes(this)},ready:function(){this.__isAnimating=!1,this.__shouldRemoveTabIndex=!1,this.__firstFocusableNode=this.__lastFocusableNode=null,this.__rafs={},this.__restoreFocusNode=null,this.__scrollTop=this.__scrollLeft=null,this.__onCaptureScroll=this.__onCaptureScroll.bind(this),this.__rootNodes=null,this._ensureSetup()},attached:function(){this.opened&&this._openedChanged(this.opened),this._observer=(0,s.tT)(this).observeNodes(this._onNodesChange)},detached:function(){for(var t in this._observer&&(0,s.tT)(this).unobserveNodes(this._observer),this._observer=null,this.__rafs)null!==this.__rafs[t]&&cancelAnimationFrame(this.__rafs[t]);this.__rafs={},this._manager.removeOverlay(this),this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},toggle:function(){this._setCanceled(!1),this.opened=!this.opened},open:function(){this._setCanceled(!1),this.opened=!0},close:function(){this._setCanceled(!1),this.opened=!1},cancel:function(t){this.fire("iron-overlay-canceled",t,{cancelable:!0}).defaultPrevented||(this._setCanceled(!0),this.opened=!1)},invalidateTabbables:function(){this.__firstFocusableNode=this.__lastFocusableNode=null},_ensureSetup:function(){this._overlaySetup||(this._overlaySetup=!0,this.style.outline="none",this.style.display="none")},_openedChanged:function(t){t?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true"),this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},_canceledChanged:function(){this.closingReason=this.closingReason||{},this.closingReason.canceled=this.canceled},_withBackdropChanged:function(){this.withBackdrop&&!this.hasAttribute("tabindex")?(this.setAttribute("tabindex","-1"),this.__shouldRemoveTabIndex=!0):this.__shouldRemoveTabIndex&&(this.removeAttribute("tabindex"),this.__shouldRemoveTabIndex=!1),this.opened&&this.isAttached&&this._manager.trackBackdrop()},_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement,this._preparePositioning(),this.refit(),this._finishPositioning(),this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},_renderOpened:function(){this._finishRenderOpened()},_renderClosed:function(){this._finishRenderClosed()},_finishRenderOpened:function(){this.notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-opened")},_finishRenderClosed:function(){this.style.display="none",this.style.zIndex="",this.notifyResize(),this.__isAnimating=!1,this.fire("iron-overlay-closed",this.closingReason)},_preparePositioning:function(){this.style.transition=this.style.webkitTransition="none",this.style.transform=this.style.webkitTransform="none",this.style.display=""},_finishPositioning:function(){this.style.display="none",this.scrollTop=this.scrollTop,this.style.transition=this.style.webkitTransition="",this.style.transform=this.style.webkitTransform="",this.style.display="",this.scrollTop=this.scrollTop},_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var t=this._manager.deepActiveElement;(t===document.body||E(this,t))&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null,this._focusNode.blur(),this._focusedChild=null}},_onCaptureClick:function(t){this.noCancelOnOutsideClick||this.cancel(t)},_onCaptureFocus:function(t){if(this.withBackdrop){var e=(0,s.tT)(t).path;-1===e.indexOf(this)?(t.stopPropagation(),this._applyFocus()):this._focusedChild=e[0]}},_onCaptureEsc:function(t){this.noCancelOnEscKey||this.cancel(t)},_onCaptureTab:function(t){if(this.withBackdrop){this.__ensureFirstLastFocusables();var e=t.shiftKey,i=e?this.__firstFocusableNode:this.__lastFocusableNode,s=e?this.__lastFocusableNode:this.__firstFocusableNode,n=!1;if(i===s)n=!0;else{var o=this._manager.deepActiveElement;n=o===i||o===this}n&&(t.preventDefault(),this._focusedChild=s,this._applyFocus())}},_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},__ensureFirstLastFocusables:function(){var t=this._focusableNodes;this.__firstFocusableNode=t[0],this.__lastFocusableNode=t[t.length-1]},__openedChanged:function(){this.opened?(this._prepareRenderOpened(),this._manager.addOverlay(this),this._applyFocus(),this._renderOpened()):(this._manager.removeOverlay(this),this._applyFocus(),this._renderClosed())},__deraf:function(t,e){var i=this.__rafs;null!==i[t]&&cancelAnimationFrame(i[t]),i[t]=requestAnimationFrame(function(){i[t]=null,e.call(this)}.bind(this))},__updateScrollObservers:function(t,e,i){t&&e&&this.__isValidScrollAction(i)?("lock"===i&&(this.__saveScrollPosition(),w(this)),this.__addScrollListeners()):(O(this),this.__removeScrollListeners())},__addScrollListeners:function(){if(!this.__rootNodes){if(this.__rootNodes=[],r.sv)for(var t=this;t;)t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host&&this.__rootNodes.push(t),t=t.host||t.assignedSlot||t.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(t){t.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(t){t.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this),this.isAttached||(this.__rootNodes=null)},__isValidScrollAction:function(t){return"lock"===t||"refit"===t||"cancel"===t},__onCaptureScroll:function(t){if(!(this.__isAnimating||(0,s.tT)(t).path.indexOf(this)>=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(t)}},__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}},I=t=>t.assignedSlot||t.parentNode||t.host,E=(t,e)=>{for(let i=e;i;i=I(i))if(i===t)return!0;return!1},k=[o,l,N]}}]);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@license
|
|
3
|
-
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
|
4
|
-
This code may only be used under the BSD style license found at
|
|
5
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
6
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
7
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
8
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
9
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
@license
|
|
14
|
-
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
|
|
15
|
-
This code may only be used under the BSD style license found at
|
|
16
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
17
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
18
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
19
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
20
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
@license
|
|
25
|
-
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
26
|
-
This code may only be used under the BSD style license found at
|
|
27
|
-
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
|
|
28
|
-
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
|
|
29
|
-
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
|
|
30
|
-
part of the polymer project is also subject to an additional IP rights grant
|
|
31
|
-
found at http://polymer.github.io/PATENTS.txt
|
|
32
|
-
*/
|
|
Binary file
|
|
Binary file
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9089],{59089(t,e,i){i.r(e),i.d(e,{TextIcon:()=>r});var h=i(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
viewBox="0 0 24 24"
|
|
4
|
-
width="24"
|
|
5
|
-
height="24"
|
|
6
|
-
style=${this.iconStyle}
|
|
7
|
-
>
|
|
8
|
-
<path fill="none" d="M0 0h24v24H0z" />
|
|
9
|
-
<path d="M13 6v15h-2V6H5V4h14v2z" />
|
|
10
|
-
</svg>`}}r.styles=h.AH`
|
|
11
|
-
:host {
|
|
12
|
-
display: inherit;
|
|
13
|
-
--cdtr-icon-width: 20px;
|
|
14
|
-
--cdtr-icon-height: 20px;
|
|
15
|
-
}
|
|
16
|
-
svg {
|
|
17
|
-
width: var(--cdtr-icon-width);
|
|
18
|
-
height: var(--cdtr-icon-height);
|
|
19
|
-
color: var(--cdtr-icon-color);
|
|
20
|
-
}
|
|
21
|
-
`,r.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-text-icon",r)}}]);
|
|
Binary file
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9162],{59162(t,e,i){i.r(e),i.d(e,{DesignIcon:()=>r});var h=i(59929);class r extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
viewBox="0 0 24 24"
|
|
4
|
-
width="24"
|
|
5
|
-
height="24"
|
|
6
|
-
style=${this.iconStyle}
|
|
7
|
-
>
|
|
8
|
-
<path fill="none" d="M0 0h24v24H0z" />
|
|
9
|
-
<path
|
|
10
|
-
fill="currentColor"
|
|
11
|
-
d="M5 8v12h4V8H5zM3 7l4-5 4 5v15H3V7zm16 9v-2h-3v-2h3v-2h-2V8h2V6h-4v14h4v-2h-2v-2h2zM14 4h6a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z"
|
|
12
|
-
/>
|
|
13
|
-
</svg>`}}r.styles=h.AH`
|
|
14
|
-
:host {
|
|
15
|
-
display: inherit;
|
|
16
|
-
--cdtr-icon-width: 20px;
|
|
17
|
-
--cdtr-icon-height: 20px;
|
|
18
|
-
}
|
|
19
|
-
svg {
|
|
20
|
-
width: var(--cdtr-icon-width);
|
|
21
|
-
height: var(--cdtr-icon-height);
|
|
22
|
-
color: var(--cdtr-icon-color);
|
|
23
|
-
}
|
|
24
|
-
`,r.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-design-icon",r)}}]);
|
|
Binary file
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9184],{29184(t,i,e){e.r(i),e.d(i,{AnimationIcon:()=>s});var h=e(59929);class s extends h.WF{constructor(){super(),this.iconStyle="",this.width="24",this.height="24"}render(){return h.qy`<svg
|
|
2
|
-
style="${this.iconStyle}"
|
|
3
|
-
width="${this.width}"
|
|
4
|
-
height="${this.height}"
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
>
|
|
8
|
-
<path fill="none" d="M0 0L24 0 24 24 0 24z" />
|
|
9
|
-
<path
|
|
10
|
-
d="M3.929 4.929l1.414 1.414C3.895 7.791 3 9.791 3 12c0 2.21.895 4.21 2.343 5.657L3.93 19.07C2.119 17.261 1 14.761 1 12s1.12-5.261 2.929-7.071zm16.142 0C21.881 6.739 23 9.239 23 12s-1.12 5.262-2.929 7.071l-1.414-1.414C20.105 16.209 21 14.209 21 12s-.895-4.208-2.342-5.656L20.07 4.93zM13 5v6h3l-5 8v-6H8l5-8zM6.757 7.757l1.415 1.415C7.448 9.895 7 10.895 7 12c0 1.105.448 2.105 1.172 2.828l-1.415 1.415C5.672 15.157 5 13.657 5 12c0-1.657.672-3.157 1.757-4.243zm10.487.001C18.329 8.844 19 10.344 19 12c0 1.657-.672 3.157-1.757 4.243l-1.415-1.415C16.552 14.105 17 13.105 17 12c0-1.104-.447-2.104-1.17-2.827l1.414-1.415z"
|
|
11
|
-
/>
|
|
12
|
-
</svg>`}}s.styles=h.AH`
|
|
13
|
-
:host {
|
|
14
|
-
display: inherit;
|
|
15
|
-
--cdtr-icon-width: 24px;
|
|
16
|
-
--cdtr-icon-height: 24px;
|
|
17
|
-
}
|
|
18
|
-
svg {
|
|
19
|
-
width: var(--cdtr-icon-width);
|
|
20
|
-
height: var(--cdtr-icon-height);
|
|
21
|
-
color: var(--cdtr-icon-color);
|
|
22
|
-
}
|
|
23
|
-
`,s.properties={iconStyle:{type:String},width:{type:String},height:{type:String}},customElements.define("cdtr-animation-icon",s)}}]);
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[9193],{49193(e,n,t){var o=t(5441),a=t(20195),s=t(72591),r=t.n(s),c=t(88639),A=t.n(c),l=t(88128),i=t.n(l),p=t(30855),d=t.n(p),m=t(93051),C=t.n(m),f=t(42793),g={};g.setAttributes=d(),g.insert=i().bind(null,"head"),g.domAPI=A(),g.insertStyleElement=C();r()(f.A,g);const b=f.A&&f.A.locals?f.A.locals:void 0;var x=t(49937),E=t(86319),u=t(9507);let y,h=[],B=!1,k=null;const v=()=>{k&&(clearTimeout(k),k=null)},w=()=>{const e=E.M.get("config","target");e?.querySelectorAll("section.section-component").forEach(e=>e.classList.remove(b.sectionStackRaise))},M=()=>{w();const e=z.parentElement,n=e?.closest("section.section-component");n&&n.classList.add(b.sectionStackRaise)},W=e=>{const n=e.detail,t=E.M.get("components",n?.dataset?.id);if(!t)throw new Error("component is not defined");const o=t?.element?.nextElementSibling;if(o){const e=E.M.get("components",o.dataset.id);e&&u.Ay.clean().selectComponent(e)}else{const e=t.element.previousElementSibling;if(e){const n=E.M.get("components",e.dataset.id);n&&u.Ay.clean().selectComponent(n)}}u.Ay.store().removeComponent({componentId:t.id})},N=(0,o.A)("cdtr-background-handle-bar",{onClick:()=>{setTimeout(()=>{u.Ay.selectComponent(E.M.get("components").find(e=>e.type.equalWith("root")))},0)},target:".section-component",onRemove:W}),S=()=>{const e=E.M.get("config","editor","configure","editorProps");return!e||"object"==typeof e&&!1!==e.addNewElementsFunctionality},z=(0,o.A)("cdtr-element-handle-bar",{onRemove:W,onClone:e=>{const n=e.detail,t=E.M.get("components",n?.dataset?.id);if(!t)throw new Error("component is not defined");const o=t.closest("section");let a=o.children.findIndex(e=>e===t.id);a="number"==typeof a&&a>=0?a+1:0,u.Ay.cloneComponent({componentId:t.id,parentId:o.id,index:a})},target:".block-component"}),O=(0,o.A)("paper-button",{style:{left:0,top:0,opacity:.7},className:b.componentName}),U=(0,o.A)("paper-button",{style:{left:0,top:0,zIndex:100,minWidth:"60px"},className:b.componentName}),Y=(0,o.A)("paper-button",{style:{left:0,top:0,opacity:.7},className:`${b.componentCardName} ${b.componentName}`},E.M.get("lang","card")),_=(0,o.A)("paper-button",{style:{left:"10%",top:0,opacity:.7,transform:"translateY(-100%)",zIndex:3},className:`${b.componentName}`},E.M.get("lang","block")||"block"),L=(0,o.A)("cdtr-fab-button",{"data-name":"add-new-block-v1",onMouseUp:e=>{x.A.dispatch("open_add_menu",{type:"block-component",target:e.target.closest(".block-component")})},class:b.addIcon},(0,o.A)("cdtr-add-icon",{iconStyle:"fill:#fff;"})),I=(0,o.A)("paper-button",{onMouseUp:e=>x.A.dispatch("open_add_menu",{type:"section-component",target:e.target.closest(".section-component")}),class:b.addSection},(0,o.A)("cdtr-add-icon",{iconStyle:"fill:#fff;"}),(0,o.A)("lang-text",{text:"add_section"}));a.A.connect(a.q.KEY_DOWN,e=>{if("Delete"===e.key){const n=document.querySelector("[data-type='block'].selected");n&&(e.preventDefault(),W({detail:n}))}});const T=(0,o.A)("div",{className:b.breadcrumbs});a.A.connect(a.q.KEY_DOWN,e=>{if("Control"!==e.key||!document.activeElement||document.activeElement.closest("[contenteditable]"))return;B=!0;u.Ay.components.find(e=>e.isSelected)&&document.body.appendChild(T)}),a.A.connect(a.q.KEY_UP,e=>{B=!1});const R=e=>{let{target:n,ctrlKey:t}=e;const o=!!t;if(E.M.set({ctrlKey:o}),n.closest("cdtr-move-handle-bar"))return;let a=n.closest("[class*='-component']");setTimeout(()=>{if(!a)return;const e=E.M.get("components",a.dataset?.id);if(a&&e)if(o&&u.Ay.components.length>0&&u.Ay.components[0].type===e.type)u.Ay.selectComponent(e);else switch(u.Ay.clean().selectComponent(e),a.appendChild(U),U.dataset.mounted=e.type,U.innerHTML=e.props.name||E.M.get("lang",e.type)||e.type.getElementType(),e.type){case"block":U.style.left="10%",U.style.transform="rotate(0deg) translate(-5%,-100%)";break;case"form":U.style.left="100%",U.style.transform="rotate(90deg) translate(10%, -7px)";break;case"card":U.style.transform="translate(-70%,120%) rotate(-90deg)",U.style.left="0",U.style.top="0";const e=E.M.get("components",U.dataset?.id);e&&(U.innerHTML=e.props.name||E.M.get("lang",e.type)||e.type.getElementType());break;default:U.style.transform="rotate(0deg) translate(-103%,-100%)",U.style.left="100%"}else{if(a=a?.closest(".text-component"),!a)return u.Ay.clean();u.Ay.clean().selectComponent(e)}if(u.Ay.components.filter(e=>"block"!==e.type&&"section"!==e.type).length>0)z.remove(),L.remove();else{const e=u.Ay.components.find(e=>"block"===e.type);e&&(y=e,S()&&(e.appendChild(z),e.appendChild(L)))}},130)},j=e=>{const n=e.target;if(!n)return;const t=((e,n)=>{const t="function"==typeof e.composedPath?e.composedPath():[];return(t.length>0?t:[n]).filter(e=>e&&e.nodeType===Node.ELEMENT_NODE)})(e,n);let o=t.find(e=>"function"==typeof e.matches&&e.matches("[class*='-component']"))||n.closest("[class*='-component']");if(o){const e=o.closest(".card-component"),a=t.find(e=>e.classList?.contains("block-component"))||o.closest(".block-component"),s=E.M.get("components",o.dataset?.id);if(s){switch(O.innerHTML=s.props.name||E.M.get("lang",s.type)||s.type.getElementType(),o.appendChild(O),s.type){case"card":case"form":case"block":O.remove();break;case"form":O.style.left="100%",O.style.transform="rotate(90deg) translate(10%, -7px)";break;default:O.style.transform="translate(-103%,-100%)",O.style.left="100%"}e?e.appendChild(Y):n.closest(".card-component")||Y.remove(),a?a.appendChild(_):_.remove()}h.forEach(e=>e.classList.remove("selected-on-hover")),"form"===s?.type&&(o=n.closest(".card-component")??o),o?.classList?.add("selected-on-hover"),h=o?[o]:[];const r=t.find(e=>"SECTION"===e.tagName&&e.classList?.contains("section-component"))||n.closest("section.section-component"),c=Array.from(document.body.querySelectorAll(".section-component"));N.sectionCounter=c.length,r?S()&&(r.appendChild(I),r.appendChild(N)):N.remove();const A=u.Ay.components.filter(e=>"block"!==e.type&&"section"!==e.type),l=a&&0===A.length,i=Boolean(z.parentElement);l?(v(),y=a,S()&&(a.appendChild(z),a.appendChild(L))):i?k||(k=setTimeout(()=>{k=null,z.remove(),L.remove(),y=null,M()},220)):(v(),z.remove(),y=null,a&&S()?a.appendChild(L):L.remove()),M()}else O.remove(),_.remove(),v(),z.remove(),L.remove(),y=null,w()};const q=setInterval(()=>{E.M.get("config","target")&&(clearInterval(q),function(){const e=E.M.get("config","target");e&&"true"!==e.dataset?.cdtrListenersAttached&&(e.dataset.cdtrListenersAttached="true",e.addEventListener(a.q.MOUSE_DOWN,R))}(),a.A.connect(a.q.MOUSE_OVER,j))},50)},42793(e,n,t){t.d(n,{A:()=>c});var o=t(82001),a=t.n(o),s=t(40935),r=t.n(s)()(a());r.push([e.id,".MO1bHL0Mf6pjhEtylQC_ {\n outline: 1px solid var(--primary) !important;\n}\n.MO1bHL0Mf6pjhEtylQC_ {\n /* background: rgba(0, 0, 255, 0.041); */\n}\n.QRabUK5WcW0UEvk5Gl4A {\n left: 0;\n top: 0;\n opacity: 0.7;\n transform: translate(-70%, 120%) rotate(-90deg);\n}\n.fFpcfOw2e_4jcwlu9RkW {\n position: absolute;\n padding: 2px;\n background: var(--primary);\n width: -moz-fit-content;\n width: fit-content;\n text-align: center;\n border-radius: 0;\n z-index: 99;\n color: var(--primary-text);\n font-size: 11px;\n /* zindex 99 to be strong than the split cells, fix the zindex there before fix here */\n}\n\n.xx7ldRh0c8iUAfIGZgAA {\n position: absolute;\n top: 0;\n left: 0;\n font-size: 12px;\n width: 100%;\n height: 100%;\n z-index: 1;\n}\n.NaXFMGugy5ZAgwCl1CR2 {\n transform: translateY(-100%);\n}\n.xJCqQVfziE9Wepw5WRYw {\n outline: black 1px solid;\n}\n.o4KmgQFcCaF1bh4BEUrs {\n position: absolute;\n background: rgb(255, 255, 255);\n z-index: 3;\n width: auto;\n min-width: 100px;\n color: black;\n border-radius: 0.2rem;\n min-height: 27px;\n box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,\n rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;\n}\n.XmM6cGXGiBaGwyP5KrLn {\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, -100%);\n z-index: 99;\n}\n.bgoCbWHegQxp7l0GPJa1 {\n position: absolute;\n top: 100%;\n left: 0;\n transform: translate(50%, -100%);\n z-index: 99;\n background: var(--primary);\n padding: 8px;\n color: #fff;\n border-radius: 20px;\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,\n rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n}\n.xUyjjx7MdpTSI8OJ7U8q {\n background: #fff;\n fill: var(--primary);\n position: absolute;\n top: 0;\n left: 0;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;\n padding: 3px;\n min-width: 10px;\n cursor: grab;\n}\n.xUyjjx7MdpTSI8OJ7U8q:active {\n cursor: grabbing !important;\n}\n\n.AvwecMDAjy_y9aL_xXE_ {\n position: relative;\n z-index: 10;\n}\n","",{version:3,sources:["webpack://./src/core/EditorUI/handlers/handleComponents/style.module.css"],names:[],mappings:"AAAA;EACE,4CAA4C;AAE9C;AAHA;EAEE,wCAAwC;AAC1C;AACA;EACE,OAAO;EACP,MAAM;EACN,YAAY;EACZ,+CAA+C;AACjD;AACA;EACE,kBAAkB;EAClB,YAAY;EACZ,0BAA0B;EAC1B,uBAAkB;EAAlB,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,WAAW;EACX,0BAA0B;EAC1B,eAAe;EACf,sFAAsF;AACxF;;AAEA;EACE,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,eAAe;EACf,WAAW;EACX,YAAY;EACZ,UAAU;AACZ;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,kBAAkB;EAClB,8BAA8B;EAC9B,UAAU;EACV,WAAW;EACX,gBAAgB;EAChB,YAAY;EACZ,qBAAqB;EACrB,gBAAgB;EAChB;0CACwC;AAC1C;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,SAAS;EACT,iCAAiC;EACjC,WAAW;AACb;AACA;EACE,kBAAkB;EAClB,SAAS;EACT,OAAO;EACP,gCAAgC;EAChC,WAAW;EACX,0BAA0B;EAC1B,YAAY;EACZ,WAAW;EACX,mBAAmB;EACnB;wCACsC;AACxC;AACA;EACE,gBAAgB;EAChB,oBAAoB;EACpB,kBAAkB;EAClB,MAAM;EACN,OAAO;EACP,2CAA2C;EAC3C,YAAY;EACZ,eAAe;EACf,YAAY;AACd;AACA;EACE,2BAA2B;AAC7B;;AAEA;EACE,kBAAkB;EAClB,WAAW;AACb",sourcesContent:[".onHover {\n outline: 1px solid var(--primary) !important;\n /* background: rgba(0, 0, 255, 0.041); */\n}\n.componentCardName {\n left: 0;\n top: 0;\n opacity: 0.7;\n transform: translate(-70%, 120%) rotate(-90deg);\n}\n.componentName {\n position: absolute;\n padding: 2px;\n background: var(--primary);\n width: fit-content;\n text-align: center;\n border-radius: 0;\n z-index: 99;\n color: var(--primary-text);\n font-size: 11px;\n /* zindex 99 to be strong than the split cells, fix the zindex there before fix here */\n}\n\n.tagContainer {\n position: absolute;\n top: 0;\n left: 0;\n font-size: 12px;\n width: 100%;\n height: 100%;\n z-index: 1;\n}\n.tagName {\n transform: translateY(-100%);\n}\n.pesudoSelected {\n outline: black 1px solid;\n}\n.breadcrumbs {\n position: absolute;\n background: rgb(255, 255, 255);\n z-index: 3;\n width: auto;\n min-width: 100px;\n color: black;\n border-radius: 0.2rem;\n min-height: 27px;\n box-shadow: rgba(0, 0, 0, 0.02) 0px 1px 3px 0px,\n rgba(27, 31, 35, 0.15) 0px 0px 0px 1px;\n}\n.addIcon {\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translate(-50%, -100%);\n z-index: 99;\n}\n.addSection {\n position: absolute;\n top: 100%;\n left: 0;\n transform: translate(50%, -100%);\n z-index: 99;\n background: var(--primary);\n padding: 8px;\n color: #fff;\n border-radius: 20px;\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px,\n rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n}\n.colHandle {\n background: #fff;\n fill: var(--primary);\n position: absolute;\n top: 0;\n left: 0;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;\n padding: 3px;\n min-width: 10px;\n cursor: grab;\n}\n.colHandle:active {\n cursor: grabbing !important;\n}\n\n.sectionStackRaise {\n position: relative;\n z-index: 10;\n}\n"],sourceRoot:""}]),r.locals={onHover:"MO1bHL0Mf6pjhEtylQC_",componentCardName:"QRabUK5WcW0UEvk5Gl4A",componentName:"fFpcfOw2e_4jcwlu9RkW",tagContainer:"xx7ldRh0c8iUAfIGZgAA",tagName:"NaXFMGugy5ZAgwCl1CR2",pesudoSelected:"xJCqQVfziE9Wepw5WRYw",breadcrumbs:"o4KmgQFcCaF1bh4BEUrs",addIcon:"XmM6cGXGiBaGwyP5KrLn",addSection:"bgoCbWHegQxp7l0GPJa1",colHandle:"xUyjjx7MdpTSI8OJ7U8q",sectionStackRaise:"AvwecMDAjy_y9aL_xXE_"};const c=r}}]);
|
|
Binary file
|